Skip to content

Commit

Permalink
Fixed AS4 Transport profile value, set value to peppol-transport-as4-…
Browse files Browse the repository at this point in the history
…v2_0 instead of bdxr-transport-ebms3-as4-v1p0
  • Loading branch information
aaron-kumar committed Nov 13, 2023
1 parent 45aab69 commit a7efc70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class TransportProfile extends AbstractSimpleIdentifier implements Serial

public static final TransportProfile ESENS_AS4 = of("bdxr-transport-ebms3-as4-v1p0");

public static final TransportProfile AS4 = ESENS_AS4;
public static final TransportProfile AS4 = PEPPOL_AS4_2_0;

public static TransportProfile of(String value) {
return new TransportProfile(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ public void serviceMetadata() throws Exception {
ServiceInformation<Endpoint> serviceInformation = result.getServiceInformation();

try {
serviceInformation.getEndpoint(processIdentifier, TransportProfile.AS4);
serviceInformation.getEndpoint(processIdentifier, TransportProfile.ESENS_AS4);
fail("Expected exception.");
} catch (EndpointNotFoundException e) {
// Expected
}

assertEquals(
serviceInformation.getEndpoint(processIdentifier, TransportProfile.PEPPOL_AS4_2_0)
serviceInformation.getEndpoint(processIdentifier, TransportProfile.AS4)
.getCertificate().getSubjectDN().toString(),
"C=FI, O=Basware, OU=PEPPOL TEST AP, CN=POP000010"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ public void busdoxServiceMetadata() throws Exception {
ServiceInformation<Endpoint> serviceInformation = result.getServiceInformation();

try {
serviceInformation.getEndpoint(processIdentifier, TransportProfile.AS4);
serviceInformation.getEndpoint(processIdentifier, TransportProfile.ESENS_AS4);
fail("Expected exception.");
} catch (EndpointNotFoundException e) {
// Expected
}

assertEquals(
serviceInformation.getEndpoint(processIdentifier, TransportProfile.PEPPOL_AS4_2_0)
serviceInformation.getEndpoint(processIdentifier, TransportProfile.AS4)
.getCertificate().getSubjectDN().toString(),
"C=FI, O=Basware, OU=PEPPOL TEST AP, CN=POP000010"
);
Expand Down

0 comments on commit a7efc70

Please sign in to comment.