import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import org.onap.ccsdk.sli.core.sli.SvcLogicException;
testMap.put("targetData", testJson);
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("SUCCESS"));
+ assertNotNull(testMap);
}
@Test
testMap.put("targetData", testJson);
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("FAILURE"));
+ assertNotNull(testJson);
}
@Test
import org.onap.ccsdk.sli.core.sli.SvcLogicException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
public class TestCompareNodeXml {
private static final Logger log = LoggerFactory.getLogger(TestCompareNodeXml.class);
testMap.put("targetData", t);
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("123." + "STATUS").equals("SUCCESS"));
+ assertNotNull(s);
}
@Test
"<SipIfTermination><udpPortInUse>true</udpPortInUse><udpPort>5060</udpPort><tcpPortInUse>true</tcpPortInUse><tcpPort>5060</tcpPort><id>2</id></SipIfTermination>");
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("SUCCESS"));
+ assertNotNull(testMap);
}
@Test
testMap.put("targetData", "<SipIfTermination><id>2</id></SipIfTermination>");
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("SUCCESS"));
+ assertNotNull(testMap);
}
}