commit | 2be2f880661f2b52512847b829cea26c778b41d6 | [log] [tgz] |
---|---|---|
author | Phaneendra Manda <phaneendra.manda@huawei.com> | Wed Nov 11 15:23:40 2015 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Nov 13 19:16:16 2015 +0000 |
tree | 7d2523df96f98c55e97b44e65a0d765f94bb543a | |
parent | c07781f50f9ef9585232a96e4df8d681d32eb26c [diff] |
Class name corrected while retriving stream from json Change-Id: I325bf61d001194953db137131c414bb877d8613b
diff --git a/core/common/src/test/java/org/onosproject/codec/impl/IntentCodecTest.java b/core/common/src/test/java/org/onosproject/codec/impl/IntentCodecTest.java index 7cbce4d..2f93396 100644 --- a/core/common/src/test/java/org/onosproject/codec/impl/IntentCodecTest.java +++ b/core/common/src/test/java/org/onosproject/codec/impl/IntentCodecTest.java
@@ -217,7 +217,7 @@ * @throws IOException if processing the resource fails */ private Intent getIntent(String resourceName, JsonCodec intentCodec) throws IOException { - InputStream jsonStream = FlowRuleCodecTest.class + InputStream jsonStream = IntentCodecTest.class .getResourceAsStream(resourceName); JsonNode json = context.mapper().readTree(jsonStream); assertThat(json, notNullValue());
diff --git a/web/api/src/test/java/org/onosproject/rest/FlowsResourceTest.java b/web/api/src/test/java/org/onosproject/rest/FlowsResourceTest.java index 4fb5821..8910e73 100644 --- a/web/api/src/test/java/org/onosproject/rest/FlowsResourceTest.java +++ b/web/api/src/test/java/org/onosproject/rest/FlowsResourceTest.java
@@ -585,7 +585,7 @@ replay(mockFlowService); WebResource rs = resource(); - InputStream jsonStream = IntentsResourceTest.class + InputStream jsonStream = FlowsResourceTest.class .getResourceAsStream("post-flow.json"); ClientResponse response = rs.path("flows/of:0000000000000001")
diff --git a/web/api/src/test/java/org/onosproject/rest/HostResourceTest.java b/web/api/src/test/java/org/onosproject/rest/HostResourceTest.java index 8c76540..5ac483d 100644 --- a/web/api/src/test/java/org/onosproject/rest/HostResourceTest.java +++ b/web/api/src/test/java/org/onosproject/rest/HostResourceTest.java
@@ -375,7 +375,7 @@ replay(mockHostService); - InputStream jsonStream = IntentsResourceTest.class + InputStream jsonStream = HostResourceTest.class .getResourceAsStream("post-host.json"); WebResource rs = resource();