aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java
diff options
context:
space:
mode:
authorsblimkie <steven.blimkie@amdocs.com>2018-07-19 16:03:44 -0400
committersblimkie <steven.blimkie@amdocs.com>2018-07-19 16:08:20 -0400
commit3bc6a702f2d3d8710c7aaa94cdc8c0ccf3deb759 (patch)
tree9703ebe15777acc73ad118520f6b1a219f60e107 /src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java
parent194adee686ebb90488f739f2c637f6cb3def94d5 (diff)
Auto-resolve edge type
Auto-resolve edge type based on EdgeRules file. Change-Id: Ic6de47f5172bc410efcdd5f08c1ea5c4f822610e Issue-ID: AAI-1396 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
Diffstat (limited to 'src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java')
-rw-r--r--src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java b/src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java
index 1f0a20b..a7479b5 100644
--- a/src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java
+++ b/src/test/java/org/onap/crud/service/ChampDaoExceptionsTest.java
@@ -229,7 +229,7 @@ public class ChampDaoExceptionsTest {
buildChampDao();
try {
- champDao.getEdge(idNotExists, type, txId);
+ champDao.getEdge(idNotExists, txId);
} catch (CrudException e) {
assertEquals(404, e.getHttpStatus().getStatusCode());
assertThat(e.getMessage(), containsString(failureCauseForGetEdge));
@@ -250,7 +250,7 @@ public class ChampDaoExceptionsTest {
// Type not matches
try {
- champDao.getEdge(id, "", txId);
+ champDao.getEdge(id, txId);
} catch (CrudException e) {
assertEquals(404, e.getHttpStatus().getStatusCode());
assertThat(e.getMessage(), containsString(failureCauseForGetEdgeTypeNotMatches));
@@ -332,7 +332,7 @@ public class ChampDaoExceptionsTest {
buildChampDao();
try {
- champDao.getVertexEdges(idNotExists, queryParams);
+ champDao.getVertexEdges(idNotExists, queryParams, null);
} catch (CrudException e) {
assertEquals(404, e.getHttpStatus().getStatusCode());
assertThat(e.getMessage(), containsString(failureCauseForGetVertexEdges));
@@ -509,13 +509,13 @@ public class ChampDaoExceptionsTest {
buildChampDao();
try {
- champDao.deleteEdge(id, type);
+ champDao.deleteEdge(id);
} catch (CrudException e) {
assertEquals(400, e.getHttpStatus().getStatusCode());
assertThat(e.getMessage(), containsString(failureCauseFordeleteEdge));
}
try {
- champDao.deleteEdge(id, type, txId);
+ champDao.deleteEdge(id, txId);
} catch (CrudException e) {
assertEquals(400, e.getHttpStatus().getStatusCode());
assertThat(e.getMessage(), containsString(failureCauseFordeleteEdge));