import static org.mockito.Mockito.inOrder;
import org.junit.Assert;
+import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.mockito.InOrder;
import org.onap.appc.exceptions.APPCException;
RestartServer rbs = new RestartServer();
rbs.setProviderCache(mg.getProviderCacheMap());
rbs.executeProviderOperation(mg.getParams(), mg.getSvcLogicContext());
+ assertNotNull(mg);
}
}
\ No newline at end of file
import org.junit.Assert;
import org.junit.Test;
-
+import static org.junit.Assert.assertNotNull;
import java.io.IOException;
public class TestJSchLogger {
jSchLogger.log(3, "test-error");
jSchLogger.log(4, "test-fatal");
jSchLogger.log(5, "test-other");
+ assertNotNull(jSchLogger);
}
}
Map<String, String> mockParams = Mockito.mock(Map.class);
Mockito.when(mockParams.get("org.onap.appc.instance.URI")).thenThrow(new RuntimeException("\n\n"));
adapter.createHttpRequest("test_method", mockParams, new RequestContext(new SvcLogicContext()));
+ assertNotNull(mockParams);
}
@Test
SvcLogicContext ctx = new SvcLogicContext();
Map<String, String> params = new HashMap<>();
adapter.commonGet(params, ctx);
+ assertNotNull(params);
}
@Test
package org.onap.appc.adapter.ssh;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.lang.reflect.Constructor;
import org.junit.Test;
Constructor<Constants> c = Constants.class.getDeclaredConstructor();
c.setAccessible(true);
c.newInstance();
+ assertNotNull(c);
}
}
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import org.onap.ccsdk.sli.core.sli.SvcLogicException;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
public class TestCompareNodeCli {
private static final Logger log = LoggerFactory.getLogger(TestCompareNodeCli.class);
testMap.put("targetData", "This is a Text Configuration of Device");
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("SUCCESS"));
+ assertNotNull(testMap);
}
@Test
testMap.put("targetData", "This is a Text Configuration of Device");
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("FAILURE"));
+ assertNotNull(testMap);
}
@Test
testMap.put("targetData.configuration-data", "This is a Text Configuration of Device");
cmp.compare(testMap, ctx);
assert (ctx.getAttribute("STATUS").equals("FAILURE"));
+ assertNotNull(testMap);
}
}