diff options
author | 2018-03-22 00:32:52 -0400 | |
---|---|---|
committer | 2018-03-22 09:34:25 -0400 | |
commit | ba31685194c77ef140411531299696ae701385d4 (patch) | |
tree | 912f7d5b3378901ccabb8df52b26866d74572f10 /src/test/java/org/onap/aai/sparky/util/StringCollectionContainsMatcher.java | |
parent | ef7f255958e541ffaec0fd2a977440dd7b6fd6b8 (diff) |
Convert Sparky to Spring-Boot
Issue-ID: AAI-599
Change-Id: If474dd02794f442fdddcd90f62fb75e0d6b907e7
Signed-off-by: da490c <dave.adams@amdocs.com>
Diffstat (limited to 'src/test/java/org/onap/aai/sparky/util/StringCollectionContainsMatcher.java')
-rw-r--r-- | src/test/java/org/onap/aai/sparky/util/StringCollectionContainsMatcher.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/test/java/org/onap/aai/sparky/util/StringCollectionContainsMatcher.java b/src/test/java/org/onap/aai/sparky/util/StringCollectionContainsMatcher.java deleted file mode 100644 index e8b3258..0000000 --- a/src/test/java/org/onap/aai/sparky/util/StringCollectionContainsMatcher.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.onap.aai.sparky.util; - -import java.util.List; - -import org.hamcrest.BaseMatcher; -import org.hamcrest.Description; - -public class StringCollectionContainsMatcher extends BaseMatcher<List<String>> { - - private String valueToCheck; - - @SuppressWarnings({"unused", "unchecked"}) - public StringCollectionContainsMatcher(String valToCheck) { - this.valueToCheck = valToCheck; - } - - @Override - public boolean matches(Object arg0) { - - @SuppressWarnings("unchecked") - List<String> argumentList = (List<String>) arg0; - - for ( String listItem : argumentList ) { - - if ( listItem.contains(valueToCheck)) { - return true; - } - } - - return false; - } - - @Override - public void describeTo(Description arg0) { - // TODO Auto-generated method stub - - } - -} |