Skip to content

Commit

Permalink
#520 filter only for file:// or memory:// URL schema for embedded sto…
Browse files Browse the repository at this point in the history
…re, otherwise delegate to remote store
  • Loading branch information
DirkMahler committed Jul 22, 2024
1 parent 930e563 commit 1d6f1a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ public Store getStore(com.buschmais.jqassistant.core.store.api.configuration.Sto
case "file":
case "memory":
return new EmbeddedGraphStore(uri, configuration, storePluginRepository, artifactProvider);
case "bolt":
case "neo4j":
case "neo4j+s":
default:
configuration.remote()
.username()
.ifPresent(username -> LOGGER.info("Authenticating with user '{}'", username));
return new RemoteGraphStore(uri, configuration, storePluginRepository);
default:
throw new IllegalArgumentException("Cannot determine store type from URI '" + uri + "'.");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ void bolt() throws URISyntaxException {
verifyRemote("bolt://localhost:7687");
}

@Test
void bolts() throws URISyntaxException {
verifyRemote("bolt+s://localhost:7687");
}

@Test
void neo4j() throws URISyntaxException {
verifyRemote("neo4j://localhost:7687");
Expand Down

0 comments on commit 1d6f1a6

Please sign in to comment.