Fix getResource to call it from the current class

This commit is contained in:
David Pilato 2016-06-03 18:26:48 +02:00
parent e7ab0a9233
commit a1496f8e21
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class GceMockUtils {
// We extract from the url the mock file path we want to use
String mockFileName = Strings.replace(url, urlRoot, "");
URL resource = GceInstancesServiceMock.class.getResource(mockFileName);
URL resource = GceMockUtils.class.getResource(mockFileName);
if (resource == null) {
throw new IOException("can't read [" + url + "] in src/test/resources/org/elasticsearch/discovery/gce");
}