Committed by
Gerrit Code Review
Class name corrected while retriving stream from json
Change-Id: I325bf61d001194953db137131c414bb877d8613b
Showing
3 changed files
with
3 additions
and
3 deletions
| ... | @@ -217,7 +217,7 @@ public class IntentCodecTest extends AbstractIntentTest { | ... | @@ -217,7 +217,7 @@ public class IntentCodecTest extends AbstractIntentTest { |
| 217 | * @throws IOException if processing the resource fails | 217 | * @throws IOException if processing the resource fails |
| 218 | */ | 218 | */ |
| 219 | private Intent getIntent(String resourceName, JsonCodec intentCodec) throws IOException { | 219 | private Intent getIntent(String resourceName, JsonCodec intentCodec) throws IOException { |
| 220 | - InputStream jsonStream = FlowRuleCodecTest.class | 220 | + InputStream jsonStream = IntentCodecTest.class |
| 221 | .getResourceAsStream(resourceName); | 221 | .getResourceAsStream(resourceName); |
| 222 | JsonNode json = context.mapper().readTree(jsonStream); | 222 | JsonNode json = context.mapper().readTree(jsonStream); |
| 223 | assertThat(json, notNullValue()); | 223 | assertThat(json, notNullValue()); | ... | ... |
| ... | @@ -585,7 +585,7 @@ public class FlowsResourceTest extends ResourceTest { | ... | @@ -585,7 +585,7 @@ public class FlowsResourceTest extends ResourceTest { |
| 585 | replay(mockFlowService); | 585 | replay(mockFlowService); |
| 586 | 586 | ||
| 587 | WebResource rs = resource(); | 587 | WebResource rs = resource(); |
| 588 | - InputStream jsonStream = IntentsResourceTest.class | 588 | + InputStream jsonStream = FlowsResourceTest.class |
| 589 | .getResourceAsStream("post-flow.json"); | 589 | .getResourceAsStream("post-flow.json"); |
| 590 | 590 | ||
| 591 | ClientResponse response = rs.path("flows/of:0000000000000001") | 591 | ClientResponse response = rs.path("flows/of:0000000000000001") | ... | ... |
| ... | @@ -375,7 +375,7 @@ public class HostResourceTest extends ResourceTest { | ... | @@ -375,7 +375,7 @@ public class HostResourceTest extends ResourceTest { |
| 375 | 375 | ||
| 376 | replay(mockHostService); | 376 | replay(mockHostService); |
| 377 | 377 | ||
| 378 | - InputStream jsonStream = IntentsResourceTest.class | 378 | + InputStream jsonStream = HostResourceTest.class |
| 379 | .getResourceAsStream("post-host.json"); | 379 | .getResourceAsStream("post-host.json"); |
| 380 | WebResource rs = resource(); | 380 | WebResource rs = resource(); |
| 381 | 381 | ... | ... |
-
Please register or login to post a comment