150151152153154155156157158
private ICartridgeQuery createCartridgeQuery(String cartridgeSpec) { try { return new DownloadableCartridgeSpec(new URL(cartridgeSpec)); } catch(MalformedURLException e) { return new CartridgeNameRegexQuery(createNamePattern(cartridgeSpec)); } }
423424425426427428429
public void shouldSelectRockmongoByNameRegex() { // pre-conditions // operation // verification assertCartridge(IEmbeddedCartridge.NAME_MONGODB, new CartridgeNameRegexQuery(IEmbeddedCartridge.NAME_MONGODB + ".*").get(connection.getEmbeddableCartridges())); }