From 1a0212a3b93c6fef19b9b0b97ec3cad63a098d03 Mon Sep 17 00:00:00 2001 From: CesarCoelho Date: Tue, 7 Jan 2025 16:47:19 +0100 Subject: [PATCH] Adds 1 more test to UC3_Ex1 for testing with the correct domains --- .../org/ccsds/mo/mpd/testbed/UC3_Ex1_Test.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/testbeds/testbed-mpd/src/test/java/org/ccsds/mo/mpd/testbed/UC3_Ex1_Test.java b/testbeds/testbed-mpd/src/test/java/org/ccsds/mo/mpd/testbed/UC3_Ex1_Test.java index 1c693638..b040dc41 100644 --- a/testbeds/testbed-mpd/src/test/java/org/ccsds/mo/mpd/testbed/UC3_Ex1_Test.java +++ b/testbeds/testbed-mpd/src/test/java/org/ccsds/mo/mpd/testbed/UC3_Ex1_Test.java @@ -205,6 +205,20 @@ public void testCase_11() { test(user, domain, DeliveryMethodEnum.SERVICE, productType, 1); } + /** + * Test Case 12. + */ + @Test + public void testCase_12() { + System.out.println("Running: testCase_12()"); + Identifier user = new Identifier("john.doe"); + IdentifierList domain = new IdentifierList(); + domain.add(new Identifier("nasa")); + domain.add(new Identifier("hubble")); + Identifier productType = null; + test(user, domain, DeliveryMethodEnum.SERVICE, productType, 1); + } + private void test(Identifier user, IdentifierList domain, DeliveryMethodEnum deliveryMethod, Identifier productType, int expectedNumberOfProducts) { try {