diff options
Diffstat (limited to 'policy-utils/src/test')
-rw-r--r-- | policy-utils/src/test/java/org/onap/policy/drools/utils/PairTripleTest.java | 68 | ||||
-rw-r--r-- | policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java | 2 |
2 files changed, 2 insertions, 68 deletions
diff --git a/policy-utils/src/test/java/org/onap/policy/drools/utils/PairTripleTest.java b/policy-utils/src/test/java/org/onap/policy/drools/utils/PairTripleTest.java deleted file mode 100644 index ca792a1c..00000000 --- a/policy-utils/src/test/java/org/onap/policy/drools/utils/PairTripleTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * policy-utils - * ================================================================================ - * Copyright (C) 2017-2018, 2020 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.drools.utils; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import org.junit.Test; - -public class PairTripleTest { - - @Test - public void testPair() { - Pair<String, String> pair = new Pair<String, String>("foo", "bar"); - - assertEquals("foo", pair.first()); - assertEquals("bar", pair.second()); - assertEquals("foo", pair.getFirst()); - assertEquals("bar", pair.getSecond()); - - pair.first("one"); - pair.second("two"); - - assertEquals("one", pair.first()); - assertEquals("two", pair.second()); - assertEquals("one", pair.getFirst()); - assertEquals("two", pair.getSecond()); - - assertNotNull(pair.toString()); - - } - - @Test - public void testTriple() { - Triple<String, String, String> triple = new Triple<String, String, String>("foo", "bar", "fiz"); - - assertEquals("foo", triple.first()); - assertEquals("bar", triple.second()); - assertEquals("fiz", triple.third()); - - triple.first("one"); - triple.second("two"); - triple.third("three"); - - assertEquals("one", triple.first()); - assertEquals("two", triple.second()); - assertEquals("three", triple.third()); - } - -} diff --git a/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java b/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java index ff613938..7f04b163 100644 --- a/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java +++ b/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java @@ -3,6 +3,7 @@ * ONAP * ================================================================================ * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2020 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,5 +57,6 @@ public class TripleTest { triple.setThird("III"); Assert.assertTrue("III".equals(triple.third())); + } }
\ No newline at end of file |