Increase code coverage
[aai/gizmo.git] / src / test / java / org / onap / crud / service / CrudRestServiceTest.java
index ddf3847..d8be704 100644 (file)
@@ -77,12 +77,11 @@ public class CrudRestServiceTest {
 
   @Before
   public void init() throws Exception {
-    ClassLoader classLoader = getClass().getClassLoader();
-    File dir = new File(classLoader.getResource("rules").getFile());
-    System.setProperty("CONFIG_HOME", dir.getParent());
+    System.setProperty("CONFIG_HOME", "src/test/resources");
     EdgeRulesLoader.resetSchemaVersionContext();
 
-    CrudGraphDataService service = new CrudGraphDataService(new TestDao());
+    ChampDaoMockTest champDaoTest = new ChampDaoMockTest();
+    CrudGraphDataService service = new CrudGraphDataService(champDaoTest.getChampDao());
     CrudRestService restService = new CrudRestService(service, null);
     mockService = Mockito.spy(restService);