diff options
author | youbowu <wu.youbo@zte.com.cn> | 2017-03-13 15:54:30 +0800 |
---|---|---|
committer | 6092002067 <wu.youbo@zte.com.cn> | 2017-03-13 15:54:30 +0800 |
commit | aac5a54d21387217b99285d46cd6dcd9bdef1555 (patch) | |
tree | 69484180cb53cebd63f550ef2ffefcefdd8360f4 /rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java | |
parent | 4c39f7390aebf3f8c6ca3b072dce0514a6cf8f99 (diff) |
Change the Way to Invoke HTTP Requests
Change-Id: Ide3962f548e619c4cdeee416b02c1cda2b2d9b9a
Issue-ID: HOLMES-50
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
Diffstat (limited to 'rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java')
-rw-r--r-- | rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java b/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java index 3b1c9bd..f4275eb 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java @@ -20,15 +20,11 @@ package org.openo.holmes.rulemgt.bolt.enginebolt; import org.apache.http.HttpResponse;
import org.apache.http.client.methods.CloseableHttpResponse;
-import org.apache.http.client.methods.HttpPut;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
-import org.easymock.EasyMock;
import org.junit.Before;
import org.junit.Rule;
-import org.junit.Test;
import org.junit.rules.ExpectedException;
-import org.openo.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;
import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;
import org.powermock.api.easymock.PowerMock;
import org.powermock.core.classloader.annotations.PrepareForTest;
@@ -57,39 +53,4 @@ public class EngineServiceTest { correlationDeployRule4Engine.setContent("{\"package\":\"test\"}");
correlationDeployRule4Engine.setEngineId("engine_id");
}
-
- @Test
- public void getResponseContent_http_entity_is_null() throws Exception {
- EasyMock.expect(httpResponseMock.getEntity()).andReturn(null);
- PowerMock.replayAll();
-
- engineService.getResponseContent(httpResponseMock);
-
- PowerMock.verifyAll();
- }
-
- @Test
- public void delete_exception() throws Exception {
- thrown.expect(Exception.class);
-
- engineService.delete("test");
-
- }
-
- @Test
- public void deploy_exception() throws Exception {
-
- thrown.expect(Exception.class);
-
- engineService.deploy(correlationDeployRule4Engine);
-
- }
-
- @Test
- public void check_normal() throws Exception {
- thrown.expect(Exception.class);
-
- engineService.check(new CorrelationCheckRule4Engine());
-
- }
}
\ No newline at end of file |