PropertyDefinition propertyDefinition = transformer.convertYAMLToPD(yamlData);
String yaml = transformer.convertPDToYaml(propertyDefinition);
+ assertNotNull(transformer);
}
@Test
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertNotNull;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
String prefix="test";
String templateModelId = "template001";
dbService.getVnfcReferenceByVnfTypeNActionWithTemplateModelId(ctx, prefix, templateModelId);
+ assertNotNull(dbService);
}
@Test
String templateModelId = "template001";
String fileCategory="testCategory";
dbService.getTemplateByVnfTypeNActionWithTemplateModelId(ctx, prefix, fileCategory, templateModelId);
+ assertNotNull(dbService);
}
@Test
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
@RunWith(PowerMockRunner.class)
@PrepareForTest(DGGeneralDBService.class)
PowerMockito.when(dGGeneralDBService.saveConfigTransactionLog(anyObject(), eq("")))
.thenReturn(QueryStatus.SUCCESS);
generalDataService.saveTransactionLog(inParams, ctx);
+ assertNotNull(dGGeneralDBService);
}
@Test(expected = Exception.class)
import org.apache.commons.io.FileUtils;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import org.apache.commons.lang.StringEscapeUtils;
import org.junit.Test;
import org.slf4j.Logger;
+ " SET request_id = $request-id , message_type = 'request' , message = $log_message ;";
String resolvedContext = resolveCtxVars(key, ctx);
ctx.setAttribute("log_message", null);
+ assertNotNull(message);
} catch (IOException e) {
}