EndpointFactory { public static Endpoint loadSPARQLEndpoint(String name, String endpoint) throws FedXException { SPARQLProvider repProvider = new SPARQLProvider(); return repProvider.loadEndpoint(new SPARQLRepositoryInformation(name, endpoint)); }  static Endpoint loadSPARQLEndpoint(String name, String endpoint); static Endpoint loadSPARQLEndpoint(String endpoint); static Endpoint loadRemoteRepository(String repositoryServer, String repositoryName); static Endpoint loadRemoteRepository(String repositoryServer, String repositoryName, boolean writable); static Endpoint loadResolvableRepository(String repositoryId); static Endpoint loadResolvableRepository(String repositoryId, boolean writable); static Endpoint loadEndpoint(String id, Repository repository); static Endpoint loadNativeEndpoint(String name, File location); static Endpoint loadNativeEndpoint(File location); static List<Endpoint> loadFederationMembers(File dataConfig, File fedXBaseDir); static List<Endpoint> loadFederationMembers(Model members, File baseDir); static String getId(String endpointID, String type);  }
@Test @Disabled public void testNotReachableEndpoint() throws Exception { try { EndpointFactory.loadSPARQLEndpoint("http: Assertions.fail("Expected exception that endpoint is invalid"); } catch (Exception expected) { } }