Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@
public final class ENTSOGPMode
{
public static final String DEFAULT_AGREEMENT_ID = "urn:as4:agreement";
public static final String ENTSOG_PARTY_ID_TYPE = "http://www.entsog.eu/eic-codes/eic-party-codes-x";
/**
* The fixed value of the <code>type</code> attribute of <code>PartyId</code>, indicating that the
* value is an EIC code. Note the host name is "entsoe.eu" (ENTSO-E maintains the EIC scheme), not
* "entsog.eu". See the ENTSOG AS4 Usage Profile, section "Party Identification".
*/
public static final String ENTSOG_PARTY_ID_TYPE = "http://www.entsoe.eu/eic-codes/eic-party-codes-x";

private ENTSOGPMode ()
{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
package com.helger.phase4.profile.entsog;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.junit.ClassRule;
Expand Down Expand Up @@ -47,5 +48,10 @@ public void testENTSOGPMode ()
IPModeIDProvider.DEFAULT_DYNAMIC,
false);
assertNotNull (aPMode);

// ENTSOG AS4 Usage Profile: "The type attribute on the PartyId element MUST be present and
// set to the fixed value http://www.entsoe.eu/eic-codes/eic-party-codes-x"
assertEquals ("http://www.entsoe.eu/eic-codes/eic-party-codes-x", aPMode.getInitiator ().getIDType ());
assertEquals ("http://www.entsoe.eu/eic-codes/eic-party-codes-x", aPMode.getResponder ().getIDType ());
}
}
Loading