X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Fcrud%2Fservice%2FTestDao.java;h=38202d7958e0b5f8ec4ac6c4ebba9d7290dd2865;hb=f60a17c6abb6deef1c24f917488745cbc6e6a566;hp=d4121639b00857260352d70d02088ae07b210925;hpb=b348af8ed2c4192f88169b37bf53fa25b8a7a681;p=aai%2Fgizmo.git diff --git a/src/test/java/org/onap/crud/service/TestDao.java b/src/test/java/org/onap/crud/service/TestDao.java index d412163..38202d7 100644 --- a/src/test/java/org/onap/crud/service/TestDao.java +++ b/src/test/java/org/onap/crud/service/TestDao.java @@ -21,13 +21,14 @@ package org.onap.crud.service; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Set; import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.MultivaluedMap; import org.onap.aai.restclient.client.OperationResult; import org.onap.crud.dao.GraphDao; +import org.onap.crud.dao.champ.ChampBulkPayload; import org.onap.crud.entity.Edge; import org.onap.crud.entity.Vertex; import org.onap.crud.exception.CrudException; @@ -84,7 +85,7 @@ public class TestDao implements GraphDao { } @Override - public List getVertexEdges(String id, Map queryParams) throws CrudException { + public List getVertexEdges(String id, Map queryParams, String txId) throws CrudException { List list = new ArrayList(); list.add(Edge.fromJson(champEdge)); return list; @@ -98,7 +99,7 @@ public class TestDao implements GraphDao { } @Override - public OperationResult getVertices(String type, Map filter, HashSet properties, String version) + public OperationResult getVertices(String type, Map filter, Set properties, String version) throws CrudException { OperationResult operationResult = new OperationResult(); operationResult.setResult(champVertices); @@ -159,7 +160,7 @@ public class TestDao implements GraphDao { } @Override - public void deleteEdge(String id, String type) throws CrudException { + public void deleteEdge(String id) throws CrudException { } @@ -217,13 +218,13 @@ public class TestDao implements GraphDao { } @Override - public void deleteEdge(String id, String type, String txId) throws CrudException { + public void deleteEdge(String id, String txId) throws CrudException { // TODO Auto-generated method stub } @Override - public Edge getEdge(String id, String type, String txId) throws CrudException { + public Edge getEdge(String id, String txId) throws CrudException { return Edge.fromJson(champEdge); } @@ -232,4 +233,16 @@ public class TestDao implements GraphDao { headers.add("etag", "test123"); return headers; } + + @Override + public Edge getEdge(String id) throws CrudException { + // TODO Auto-generated method stub + return null; + } + +@Override +public OperationResult bulkOperation(ChampBulkPayload champPayload) throws CrudException { + // TODO Auto-generated method stub + return null; +} } \ No newline at end of file