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)