BigdataSailFactory { @Deprecated public static String testServiceEndpointUrl(final String serviceEndpoint) { return normalizeEndpoint(serviceEndpoint); }  static BigdataSailRemoteRepository connect(final String host,
         final int port); static BigdataSailRemoteRepository connect(
			final String sparqlEndpointURL); @Deprecated // We are getting rid of this, right? static String testServiceEndpointUrl(final String serviceEndpoint); static SailRepository openRepository(final String file); static SailRepository openRepository(final String file, 
            final boolean create); static Sail openSail(final String file); static Sail openSail(final String file, final boolean create); static SailRepository createRepository(final Option... args); static SailRepository createRepository(final Properties props,
            final Option... args); static SailRepository createRepository(final String file,
            final Option... args); static SailRepository createRepository(final Properties props,
            final String file, final Option... args); static Sail createSail(final Option... args); static Sail createSail(final String file, 
            final Option... args); static Sail createSail(final Properties props,
            final String file, final Option... args); static final String BIGDATA_SAIL_INSTANCE; static final String SAIL_PROVIDER; }
@Test public void testWithNamespaceSparqlTrailingSlash() { String serviceEndpoint = Config.DEFAULT_ENDPOINT + "/namespace/NAMESPACE/sparql/"; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryNamespaceUrl, normalizedServiceURL); }
@Test public void testWithSparql() { String serviceEndpoint = Config.DEFAULT_ENDPOINT + "/sparql"; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryUrl,normalizedServiceURL); }
@Test public void testWithoutSparql() { String serviceEndpoint = Config.DEFAULT_ENDPOINT + "/"; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryUrl,normalizedServiceURL); }
@Test public void testWithoutSparqlAndNoTrailingSlash() { String serviceEndpoint = Config.DEFAULT_ENDPOINT; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryUrl,normalizedServiceURL); }
@Test public void testHostOnly() { String serviceEndpoint = "http: String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryUrl,normalizedServiceURL); }
@Test public void testHostOnlyNoTrailingSlash() { String serviceEndpoint = "http: String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryUrl,normalizedServiceURL); }
@Test public void testWithNamespaceNoSparql() { String serviceEndpoint = Config.DEFAULT_ENDPOINT + "/namespace/NAMESPACE"; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryNamespaceUrl, normalizedServiceURL); }
@Test public void testWithNamespaceNoSparqlWithTrailingSlash() { String serviceEndpoint = Config.DEFAULT_ENDPOINT + "/namespace/NAMESPACE/"; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryNamespaceUrl, normalizedServiceURL); }
@Test public void testWithNamespaceSparql() { String serviceEndpoint = Config.DEFAULT_ENDPOINT + "/namespace/NAMESPACE/sparql"; String normalizedServiceURL = BigdataSailFactory.testServiceEndpointUrl(serviceEndpoint); assertEquals(remoteRepositoryNamespaceUrl, normalizedServiceURL); }