Skip to content

Commit

Permalink
Add tests related to the supplements header field.
Browse files Browse the repository at this point in the history
  • Loading branch information
lacourte committed Sep 11, 2023
1 parent 2724297 commit 81bc21f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The transitions are checked by ensuring that the faulty messages are not receive

|scenario| test interaction pattern | interaction | with transitions | trans | and behaviour id | id |
|pattern | @interaction | with supplements | Empty | and transitions | @trans | and behaviour id | @id | test |
#|pattern | @interaction | with supplements | Full | and transitions | @trans | and behaviour id | @id | test |
|pattern | @interaction | with supplements | Full | and transitions | @trans | and behaviour id | @id | test |

***********!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public boolean patternInitiationForWithMultiWithEmptyBodyAndSupplementsAndTransi
expectedInitialHeader.getOperation(),
MALPrototypeHelper.MALPROTOTYPE_AREA.getVersion(),
Boolean.FALSE,
supplementsValue);
Helper.supplementsIPTestProvider);

sendInitialFaultyTransitions(initialFaultyTransList, expectedFinalHeader);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.ccsds.moims.mo.mal.test.patterns.IPTestHandlerImpl;
import org.ccsds.moims.mo.mal.test.patterns.pubsub.IPTestHandlerWithSharedBroker;
import org.ccsds.moims.mo.mal.test.transport.MALTestEndPointSendInterceptor;
import org.ccsds.moims.mo.mal.test.util.Helper;
import org.ccsds.moims.mo.malprototype.MALPrototypeHelper;
import org.ccsds.moims.mo.malprototype.datatest.DataTestHelper;
import org.ccsds.moims.mo.malprototype.datatest.DataTestServiceInfo;
Expand Down Expand Up @@ -151,7 +152,7 @@ protected void createProviders() throws MALException {
null,
Boolean.TRUE, // isPublisher
null,
null);
Helper.supplementsIPTestProvider);

FileBasedDirectory.storePrivateBrokerAuthenticationId(
ipprovider.getBrokerAuthenticationId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public final class Helper {

public static NamedValueList supplementsEmpty;
public static NamedValueList supplementsFull;
public static NamedValueList supplementsIPTestProvider;

public static final String EMPTY_SUPPLEMENTS = "Empty";
public static final String FULL_SUPPLEMENTS = "Full";
Expand Down Expand Up @@ -73,6 +74,8 @@ public final class Helper {
supplementsFull.add(new NamedValue(new Identifier("FineTime suppl"), new FineTime(Long.MAX_VALUE)));
supplementsFull.add(new NamedValue(new Identifier("URI suppl"), new URI("URI suppl")));
supplementsFull.add(new NamedValue(new Identifier("ObjectRef suppl"), new ObjectRef(testDomain, MyFirstObject.SHORT_FORM, new Identifier("ObjectRef suppl"), new UInteger(1))));
supplementsIPTestProvider = new NamedValueList();
supplementsIPTestProvider.add(new NamedValue(new Identifier("Provider name"), new Identifier("IPTest")));
}

private Helper() {
Expand Down

0 comments on commit 81bc21f

Please sign in to comment.