Skip to content

Commit

Permalink
Additional API clean-up; add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeEdgar committed Sep 2, 2019
1 parent 5f704cb commit fba49f7
Show file tree
Hide file tree
Showing 26 changed files with 1,386 additions and 953 deletions.
317 changes: 165 additions & 152 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,167 +1,180 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.xlate</groupId>
<artifactId>staedi-parent</artifactId>
<version>0.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<name>StAEDI Parent Project</name>
<description>Streaming API for EDI (for Java) / Parent Project</description>
<url>https://github.com/xlate/staedi</url>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.xlate</groupId>
<artifactId>staedi-parent</artifactId>
<version>0.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<name>StAEDI Parent Project</name>
<description>Streaming API for EDI (for Java) / Parent Project</description>
<url>https://github.com/xlate/staedi</url>

<issueManagement>
<url>https://github.com/xlate/staedi/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<issueManagement>
<url>https://github.com/xlate/staedi/issues</url>
<system>GitHub Issues</system>
</issueManagement>

<scm>
<url>https://github.com/xlate/staedi</url>
<connection>scm:git:https://github.com/xlate/staedi.git</connection>
<developerConnection>scm:git:ssh://git@github.com/xlate/staedi.git</developerConnection>
<tag>HEAD</tag>
</scm>
<scm>
<url>https://github.com/xlate/staedi</url>
<connection>scm:git:https://github.com/xlate/staedi.git</connection>
<developerConnection>scm:git:ssh://git@github.com/xlate/staedi.git</developerConnection>
<tag>HEAD</tag>
</scm>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>

<developers>
<developer>
<name>Michael Edgar</name>
<organizationUrl>https://www.xlate.io/</organizationUrl>
</developer>
</developers>
<developers>
<developer>
<name>Michael Edgar</name>
<organizationUrl>https://www.xlate.io/</organizationUrl>
</developer>
</developers>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<api-version>0.0.2-SNAPSHOT</api-version>
<impl-version>0.0.2-SNAPSHOT</impl-version>
</properties>
<api-version>0.0.2-SNAPSHOT</api-version>
<impl-version>0.0.2-SNAPSHOT</impl-version>
</properties>

<modules>
<module>staedi-api</module>
<module>staedi-impl</module>
</modules>
<modules>
<module>staedi-api</module>
<module>staedi-impl</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.xlate</groupId>
<artifactId>staedi-api</artifactId>
<version>${api-version}</version>
</dependency>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.xlate</groupId>
<artifactId>staedi-api</artifactId>
<version>${api-version}</version>
</dependency>

<dependency>
<groupId>io.xlate</groupId>
<artifactId>staedi-impl</artifactId>
<version>${impl-version}</version>
</dependency>
<dependency>
<groupId>io.xlate</groupId>
<artifactId>staedi-impl</artifactId>
<version>${impl-version}</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
</dependencyManagement>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
35 changes: 18 additions & 17 deletions staedi-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,23 @@
License for the specific language governing permissions and limitations under
the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.xlate</groupId>
<artifactId>staedi-parent</artifactId>
<version>0.0.2-SNAPSHOT</version>
</parent>
<artifactId>staedi-api</artifactId>
<name>StAEDI Application Program Interface (API)</name>
<description>Streaming API for EDI (for Java) / API Definition</description>
<url>https://github.com/xlate/staedi</url>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.xlate</groupId>
<artifactId>staedi-parent</artifactId>
<version>0.0.2-SNAPSHOT</version>
</parent>
<artifactId>staedi-api</artifactId>
<name>StAEDI Application Program Interface (API)</name>
<description>Streaming API for EDI (for Java) / API Definition</description>
<url>https://github.com/xlate/staedi</url>

<scm>
<url>https://github.com/xlate/staedi</url>
<connection>scm:git:https://github.com/xlate/staedi.git</connection>
<developerConnection>scm:git:ssh://git@github.com/xlate/staedi.git</developerConnection>
<tag>HEAD</tag>
</scm>
<scm>
<url>https://github.com/xlate/staedi</url>
<connection>scm:git:https://github.com/xlate/staedi.git</connection>
<developerConnection>scm:git:ssh://git@github.com/xlate/staedi.git</developerConnection>
<tag>HEAD</tag>
</scm>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ public enum Base {

Set<String> getValueSet();

@Override
default Type getType() {
return EDIType.Type.ELEMENT;
}
}
Loading

0 comments on commit fba49f7

Please sign in to comment.