AAIResourceNode aai = new AAIResourceNode();
aai.populateContext(vservers, ctx, "vserver.");
log.info(ctx.getAttribute("vserver.vm[0].vserver-name"));
+ assertNotNull(vserverMap);
}
@Test
AaiService aaiService = Mockito.mock(AaiService.class);
Mockito.doReturn(aaiService).when(aai).getAaiService();
aai.addVnfcs(inParams, ctx);
+ assertNotNull(ctx);
}
@Test
ctx.setAttribute("test.vnf.vm-with-no-vnfcs-count-vf-module", "0");
ctx.setAttribute("test.vnf.vm-count-for-vf-module", "2");
aairn.processCheckForVfModule("vfmoduleId1", ctx, "test.", 2);
+ assertNotNull(aairn);
}
@Test
import org.onap.appc.instar.utils.InstarClientConstant;
import org.onap.sdnc.config.params.data.ResponseKey;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
+import static org.junit.Assert.assertNotNull;
public class TestInstarResponseHandlerImpl {
+ "[{\"fqdn\":\"fqdnx\",\"v4IPAddress\":\"value2\"}]}";
InstarResponseHandlerImpl impl = new InstarResponseHandlerImpl(resKey,svc);
impl.processResponse(instarRes, instarKey);
+ assertNotNull(resKey);
}
@Test
+ "[{\"fqdn\":\"fqdnx\",\"v6IPAddress\":\"value2\"}]}";
InstarResponseHandlerImpl impl = new InstarResponseHandlerImpl(resKey,svc);
impl.processResponse(instarRes, instarKey);
+ assertNotNull(resKey);
}
@Test
+ "[{\"fqdn\":\"fqdnx\",\"v6IPAddress\":\"value2\"}]}";
InstarResponseHandlerImpl impl = new InstarResponseHandlerImpl(resKey,svc);
impl.processResponse(instarRes, instarKey);
+ assertNotNull(impl);
}
@Test
import org.junit.Test;
import org.mockito.Mockito;
import org.onap.appc.instar.dme2client.SecureRestClientTrustManager;
+import static org.junit.Assert.assertNotNull;
public class TestSecureRestClientTrustManager {
Mockito.when(sm.getAcceptedIssuers()).thenReturn(Mockito.any());
Mockito.when(sm.isClientTrusted(arg0)).thenReturn(true);
Mockito.when(sm.isServerTrusted(arg0)).thenReturn(true);
+ assertNotNull(sm);
}
}
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
+import static org.junit.Assert.assertNotNull;
@RunWith(PowerMockRunner.class)
@PrepareForTest({IDistributionClient.class,
INotificationData notificationData = getNotificationData();
sdcCallback.activateCallback(notificationData);
pause();
+ assertNotNull(notificationData);
}
@Test
public void testOutgoingToString() {
String s = out.toString();
//assertTrue(s.contains(out.getId()));
+ assertNotNull(s);
}
}