GithubUrl implements RemoteFactoryUrl { @Override public List<DevfileLocation> devfileFileLocations() { return devfileFilenames.stream().map(this::createDevfileLocation).collect(Collectors.toList()); } protected  GithubUrl(); String getUsername(); GithubUrl withUsername(String userName); String getRepository(); @Override String getFactoryFilename(); String getBranch(); String getSubfolder(); @Override String factoryFileLocation(); @Override List<DevfileLocation> devfileFileLocations(); String rawFileLocation(String fileName);  }
@Test public void checkDevfileLocation() { lenient() .when(devfileFilenamesProvider.getConfiguredDevfileFilenames()) .thenReturn(Arrays.asList("devfile.yaml", "foo.bar")); assertEquals(githubUrl.devfileFileLocations().size(), 2); Iterator<DevfileLocation> iterator = githubUrl.devfileFileLocations().iterator(); assertEquals( iterator.next().location(), "https: assertEquals( iterator.next().location(), "https: }