-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Peppol Business Message Envelope v2.0.1 and eDEC Co…
…de Lists v8.6
- Loading branch information
1 parent
d4d7726
commit 56d02a4
Showing
15 changed files
with
227 additions
and
36 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
peppol-common/src/main/java/network/oxalis/vefa/peppol/common/model/C1CountryIdentifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package network.oxalis.vefa.peppol.common.model; | ||
|
||
import java.io.Serializable; | ||
|
||
public class C1CountryIdentifier extends AbstractSimpleIdentifier implements Serializable { | ||
|
||
private static final long serialVersionUID = -3492824463587521885L; | ||
|
||
public static C1CountryIdentifier of(String value) { | ||
return new C1CountryIdentifier(value); | ||
} | ||
|
||
public C1CountryIdentifier(String value) { | ||
super(value); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...common/src/test/java/network/oxalis/vefa/peppol/common/model/C1CountryIdentifierTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package network.oxalis.vefa.peppol.common.model; | ||
|
||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
public class C1CountryIdentifierTest { | ||
|
||
@Test | ||
public void simple() { | ||
Assert.assertNotNull(InstanceIdentifier.generateUUID().getIdentifier()); | ||
|
||
C1CountryIdentifier c1CountryIdentifier = C1CountryIdentifier.of("IN"); | ||
|
||
Assert.assertEquals(c1CountryIdentifier.getIdentifier(), "IN"); | ||
Assert.assertEquals(c1CountryIdentifier.toString(), "IN"); | ||
|
||
Assert.assertTrue(c1CountryIdentifier.equals(c1CountryIdentifier)); | ||
Assert.assertFalse(c1CountryIdentifier.equals("IN")); | ||
Assert.assertFalse(c1CountryIdentifier.equals(null)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.