X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fengine-management.git;a=blobdiff_plain;f=engine-d%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fholmes%2Fengine%2Fresources%2FEngineResourcesTest.java;h=a09eb3a634958315183efd215c8b6db2dc6c6aaa;hp=6be232fae282bf76e27eae04bd9899d6e555232b;hb=163dd74935802f562ef7272cadf0f88b6a63960a;hpb=43ea5d47cc50cfc3200d4f7a1b9748fab3426bf2 diff --git a/engine-d/src/test/java/org/onap/holmes/engine/resources/EngineResourcesTest.java b/engine-d/src/test/java/org/onap/holmes/engine/resources/EngineResourcesTest.java index 6be232f..a09eb3a 100644 --- a/engine-d/src/test/java/org/onap/holmes/engine/resources/EngineResourcesTest.java +++ b/engine-d/src/test/java/org/onap/holmes/engine/resources/EngineResourcesTest.java @@ -44,7 +44,7 @@ public class EngineResourcesTest { droolsEngine = PowerMock.createMock(DroolsEngine.class); engineResources = new EngineResources(); - Whitebox.setInternalState(engineResources,"droolsEngine",droolsEngine); + Whitebox.setInternalState(engineResources,"droolsEngine", droolsEngine); PowerMock.resetAll(); } @@ -56,7 +56,7 @@ public class EngineResourcesTest { thrown.expect(WebApplicationException.class); expect(httpRequest.getHeader("language-option")).andReturn("en_US"); - expect(droolsEngine.deployRule(anyObject(DeployRuleRequest.class), anyObject(Locale.class))). + expect(droolsEngine.deployRule(anyObject(DeployRuleRequest.class))). andThrow(new CorrelationException("")); PowerMock.replayAll(); engineResources.deployRule(deployRuleRequest, httpRequest); @@ -71,8 +71,7 @@ public class EngineResourcesTest { HttpServletRequest httpRequest = PowerMock.createMock(HttpServletRequest.class); expect(httpRequest.getHeader("language-option")).andReturn("en_US"); - expect(droolsEngine.deployRule(anyObject(DeployRuleRequest.class), - anyObject(Locale.class))).andReturn("packageName"); + expect(droolsEngine.deployRule(anyObject(DeployRuleRequest.class))).andReturn("packageName"); PowerMock.replayAll(); engineResources.deployRule(deployRuleRequest, httpRequest); PowerMock.verifyAll(); @@ -86,7 +85,7 @@ public class EngineResourcesTest { thrown.expect(WebApplicationException.class); expect(httpRequest.getHeader("language-option")).andReturn("en_US"); - droolsEngine.undeployRule(anyObject(String.class), anyObject(Locale.class)); + droolsEngine.undeployRule(anyObject(String.class)); expectLastCall().andThrow(new CorrelationException("")); PowerMock.replayAll(); engineResources.undeployRule(packageName, httpRequest); @@ -99,7 +98,7 @@ public class EngineResourcesTest { HttpServletRequest httpRequest = PowerMock.createMock(HttpServletRequest.class); expect(httpRequest.getHeader("language-option")).andReturn("en_US"); - droolsEngine.undeployRule(anyObject(String.class), anyObject(Locale.class)); + droolsEngine.undeployRule(anyObject(String.class)); PowerMock.replayAll(); engineResources.undeployRule(packageName, httpRequest); PowerMock.verifyAll(); @@ -113,7 +112,7 @@ public class EngineResourcesTest { thrown.expect(WebApplicationException.class); expect(httpRequest.getHeader("language-option")).andReturn("en_US"); - droolsEngine.compileRule(anyObject(String.class),anyObject(Locale.class)); + droolsEngine.compileRule(anyObject(String.class)); expectLastCall().andThrow(new CorrelationException("")); PowerMock.replayAll(); engineResources.compileRule(compileRuleRequest, httpRequest); @@ -126,7 +125,7 @@ public class EngineResourcesTest { HttpServletRequest httpRequest = PowerMock.createMock(HttpServletRequest.class); expect(httpRequest.getHeader("language-option")).andReturn("en_US"); - droolsEngine.compileRule(anyObject(String.class),anyObject(Locale.class)); + droolsEngine.compileRule(anyObject(String.class)); PowerMock.replayAll(); engineResources.compileRule(compileRuleRequest, httpRequest); PowerMock.verifyAll();