Jian Li
Committed by Gerrit Code Review

Fix typo in RegionsResourceTest

Change-Id: I486af535e57876b63854c5d11cb754ec3bb0c989
...@@ -142,8 +142,8 @@ public class RegionsResourceTest extends ResourceTest { ...@@ -142,8 +142,8 @@ public class RegionsResourceTest extends ResourceTest {
142 } 142 }
143 143
144 /** 144 /**
145 - * Hamcrest matcher to check that a meter representation in JSON matches 145 + * Hamcrest matcher to check that a region representation in JSON matches
146 - * the actual meter. 146 + * the actual region.
147 */ 147 */
148 public static class RegionJsonMatcher extends TypeSafeMatcher<JsonObject> { 148 public static class RegionJsonMatcher extends TypeSafeMatcher<JsonObject> {
149 private final Region region; 149 private final Region region;
...@@ -342,7 +342,7 @@ public class RegionsResourceTest extends ResourceTest { ...@@ -342,7 +342,7 @@ public class RegionsResourceTest extends ResourceTest {
342 replay(mockRegionAdminService); 342 replay(mockRegionAdminService);
343 343
344 WebResource rs = resource(); 344 WebResource rs = resource();
345 - InputStream jsonStream = MetersResourceTest.class 345 + InputStream jsonStream = RegionsResourceTest.class
346 .getResourceAsStream("post-region.json"); 346 .getResourceAsStream("post-region.json");
347 347
348 ClientResponse response = rs.path("regions") 348 ClientResponse response = rs.path("regions")
...@@ -364,7 +364,7 @@ public class RegionsResourceTest extends ResourceTest { ...@@ -364,7 +364,7 @@ public class RegionsResourceTest extends ResourceTest {
364 replay(mockRegionAdminService); 364 replay(mockRegionAdminService);
365 365
366 WebResource rs = resource(); 366 WebResource rs = resource();
367 - InputStream jsonStream = MetersResourceTest.class 367 + InputStream jsonStream = RegionsResourceTest.class
368 .getResourceAsStream("post-region.json"); 368 .getResourceAsStream("post-region.json");
369 369
370 ClientResponse response = rs.path("regions/" + region1.id().toString()) 370 ClientResponse response = rs.path("regions/" + region1.id().toString())
...@@ -434,7 +434,7 @@ public class RegionsResourceTest extends ResourceTest { ...@@ -434,7 +434,7 @@ public class RegionsResourceTest extends ResourceTest {
434 replay(mockRegionAdminService); 434 replay(mockRegionAdminService);
435 435
436 WebResource rs = resource(); 436 WebResource rs = resource();
437 - InputStream jsonStream = MetersResourceTest.class 437 + InputStream jsonStream = RegionsResourceTest.class
438 .getResourceAsStream("region-deviceIds.json"); 438 .getResourceAsStream("region-deviceIds.json");
439 439
440 ClientResponse response = rs.path("regions/" + 440 ClientResponse response = rs.path("regions/" +
...@@ -456,7 +456,7 @@ public class RegionsResourceTest extends ResourceTest { ...@@ -456,7 +456,7 @@ public class RegionsResourceTest extends ResourceTest {
456 replay(mockRegionAdminService); 456 replay(mockRegionAdminService);
457 457
458 WebResource rs = resource(); 458 WebResource rs = resource();
459 - InputStream jsonStream = MetersResourceTest.class 459 + InputStream jsonStream = RegionsResourceTest.class
460 .getResourceAsStream("region-deviceIds.json"); 460 .getResourceAsStream("region-deviceIds.json");
461 461
462 ClientResponse response = rs.path("regions/" + 462 ClientResponse response = rs.path("regions/" +
......