QueryStatus resp = client.save("connector", false, false, "resource-instance-id = '12345'", data, "aaidata", ctx);
LOG.info("AAIResponse: " + resp.toString());
+ assertNotNull(ctx);
}
catch (Exception e)
{
QueryStatus resp = client.save("connector", false, false, "resource-instance-id = '11012345'", data, "aaidata", ctx);
LOG.info("AAIResponse: " + resp.toString());
+ assertNotNull(ctx);
}
catch (Exception e)
{
QueryStatus resp = client.save("logical-link", false, false, "link-name = '1252541'", data, "aaidata", ctx);
LOG.info("AAIResponse: " + resp.toString());
+ assertNotNull(data);
}
catch (Exception e)
{
QueryStatus resp = client.save("virtual-data-center", false, false, "vdc-id = '1252541'", data, "aaidata", ctx);
LOG.info("AAIResponse: " + resp.toString());
+ assertNotNull(data);
}
catch (Exception e)
{
// assertTrue(response == QueryStatus.SUCCESS);
LOG.info("AAIResponse: " + datum.toString());
+ assertNotNull(nameValues);
}
catch (Exception e)
{
import static org.mockito.Mockito.mock;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
+import static org.junit.Assert.assertNotNull;
public class TestConfigResource extends TestCase {
res.isAvailable("my-resource", "mykey", "pfx", ctx);
res.save("resource", false, false, null, null, null, ctx);
res.update("my-resource", "mykey", null, "pfx", ctx);
+ assertNotNull(res);
}
}
import java.util.Properties;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
public class TestMdsalResourcePropertiesProviderImpl {
MdsalResourcePropertiesProviderImpl test = new MdsalResourcePropertiesProviderImpl();
mdsal.determinePropertiesFile(test);
+ assertNotNull(test);
}
}
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import junit.framework.TestCase;
+import static org.junit.Assert.assertNotNull;
public class TestOperationalResource extends TestCase {
res.isAvailable("my-resource", "mykey", "pfx", ctx);
res.save("resource", false, false, null, null, null, ctx);
res.update("my-resource", "mykey", null, "pfx", ctx);
+ assertNotNull(restService);
}
}
public void callClose() throws Exception {\r
DummyConsumer dummy = getAuthDummy();\r
dummy.close();\r
+ assertNotNull(dummy);\r
}\r
\r
@Test\r
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import static org.junit.Assert.assertNotNull;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:test-context.xml" })
t1.join();
t2.join();
t3.join();
+ assertNotNull(t1);
}
private class LockThread extends Thread {
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import jtest.util.org.onap.ccsdk.sli.adaptors.ra.TestTable;
+import static org.junit.Assert.assertNotNull;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:test-context.xml" })
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(rsList);
}
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(sd);
}
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(rr);
}
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(rsList);
}