import org.onap.appc.encryptiontool.wrapper.WrapperEncryptionTool;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
public class TestEncryptionTool {
public void decrypt() throws Exception {
EncryptionTool et = EncryptionTool.getInstance();
System.out.println(et.decrypt("enc:Ai8KLw=="));
+ assertNotNull(et);
}
//@Test(expected=Exception.class)
param.setParamName("2");\r
param.setParamValue("def");\r
System.out.println("param hashcode is " + param.hashCode());\r
+ assertNotNull(param);\r
}\r
\r
@Test\r
import org.onap.appc.flow.controller.node.JsonParsingNode;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import org.onap.ccsdk.sli.core.sli.SvcLogicException;
+import static org.junit.Assert.assertNotNull;
public class TestParsingNode {
String parmName = (String) key;
String parmValue = ctx.getAttribute(parmName);
}
+ assertNotNull(ctx);
}
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.reflect.Whitebox;
import org.powermock.modules.junit4.PowerMockRunner;
+import static org.junit.Assert.assertNotNull;
@RunWith(PowerMockRunner.class)
@PrepareForTest(EncryptionTool.class)
Mockito.doThrow(new IOException("testing exception")).when(mockProp).load(mockIS);
Whitebox.setInternalState(defaultConfiguration, "properties", mockProp);
defaultConfiguration.setProperties(mockIS);
+ assertNotNull(mockIS);
// Should come here without exception
}