diff --git a/wsmaster/che-core-api-factory-gitlab/src/test/java/org/eclipse/che/api/factory/server/gitlab/GitlabAuthorizingFileContentProviderTest.java b/wsmaster/che-core-api-factory-gitlab/src/test/java/org/eclipse/che/api/factory/server/gitlab/GitlabAuthorizingFileContentProviderTest.java index aa0e0ce85a..8749e03251 100644 --- a/wsmaster/che-core-api-factory-gitlab/src/test/java/org/eclipse/che/api/factory/server/gitlab/GitlabAuthorizingFileContentProviderTest.java +++ b/wsmaster/che-core-api-factory-gitlab/src/test/java/org/eclipse/che/api/factory/server/gitlab/GitlabAuthorizingFileContentProviderTest.java @@ -100,7 +100,6 @@ public void shouldThrowFileNotFoundException() throws Exception { wireMockServer.url( "/api/v4/projects/eclipse%2Fche/repository/files/devfile.yaml/raw?ref=HEAD")))) .thenThrow(new FileNotFoundException()); - when(urlFetcher.fetch(eq("http://gitlab.com/eclipse/che"))).thenReturn("content"); when(personalAccessTokenManager.getAndStore(anyString())) .thenThrow(new UnknownScmProviderException("", "")); URI uri = URI.create(wireMockServer.url("/")); @@ -128,7 +127,6 @@ public void shouldThrowDevfileException() throws Exception { wireMockServer.url( "/api/v4/projects/eclipse%2Fche/repository/files/devfile.yaml/raw?ref=HEAD")))) .thenThrow(new FileNotFoundException("test path")); - when(urlFetcher.fetch(eq("http://gitlab.com/eclipse/che"))).thenReturn("content"); when(personalAccessTokenManager.getAndStore(anyString())) .thenThrow(new UnknownScmProviderException("", "")); URI uri = URI.create(wireMockServer.url("/"));