From 437e446e8dffb7a484bf658d66533ebb10d05825 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Tue, 15 Jan 2019 08:29:47 -0600 Subject: Change Junit to check for error code 406 This is to support some clean up changes done in policy/common under commit 55f5c4dc9e130e48a25b048e1f3091b10c17e365. Change-Id: I2961d7ba719d22f144af972dc3964c3ac402e75c Issue-ID: POLICY-1397 Signed-off-by: Jorge Hernandez --- .../org/onap/policy/drools/server/restful/test/RestManagerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'policy-management/src') diff --git a/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java b/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java index 5d6b11dc..11f27f49 100644 --- a/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java +++ b/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java @@ -292,7 +292,7 @@ public class RestManagerTest { response = client.execute(httpPut); logger.info(httpPut.getRequestLine() + " response code: {}", response.getStatusLine().getStatusCode()); - assertEquals(404, response.getStatusLine().getStatusCode()); + assertEquals(406, response.getStatusLine().getStatusCode()); httpPut.releaseConnection(); httpPut = new HttpPut(HOST_URL + "/engine/topics/switches/lock"); -- cgit 1.2.3-korg