@Test void testIdSupplier() { final IRI identifier = rdf.createIRI("https: final BinaryService service = new FileBinaryService(); assertTrue(service.generateIdentifier(identifier).startsWith("file: assertNotEquals(service.generateIdentifier(identifier), service.generateIdentifier(identifier), "Identifiers are not unique!"); }
@Override public String generateIdentifier(final IRI identifier) { return idSupplier.get(); }
FileBinaryService implements BinaryService { @Override public String generateIdentifier(final IRI identifier) { return idSupplier.get(); } }
FileBinaryService implements BinaryService { @Override public String generateIdentifier(final IRI identifier) { return idSupplier.get(); } FileBinaryService(); @Inject  FileBinaryService(final IdentifierService idService);  FileBinaryService(final IdentifierService idService, final String basePath,
            final int hierarchy, final int length); private  FileBinaryService(final IdentifierService idService, final Config config); }
FileBinaryService implements BinaryService { @Override public String generateIdentifier(final IRI identifier) { return idSupplier.get(); } FileBinaryService(); @Inject  FileBinaryService(final IdentifierService idService);  FileBinaryService(final IdentifierService idService, final String basePath,
            final int hierarchy, final int length); private  FileBinaryService(final IdentifierService idService, final Config config); @Override CompletionStage<Binary> get(final IRI identifier); @Override CompletionStage<Void> purgeContent(final IRI identifier); @Override CompletionStage<Void> setContent(final BinaryMetadata metadata, final InputStream stream); @Override String generateIdentifier(final IRI identifier); }
FileBinaryService implements BinaryService { @Override public String generateIdentifier(final IRI identifier) { return idSupplier.get(); } FileBinaryService(); @Inject  FileBinaryService(final IdentifierService idService);  FileBinaryService(final IdentifierService idService, final String basePath,
            final int hierarchy, final int length); private  FileBinaryService(final IdentifierService idService, final Config config); @Override CompletionStage<Binary> get(final IRI identifier); @Override CompletionStage<Void> purgeContent(final IRI identifier); @Override CompletionStage<Void> setContent(final BinaryMetadata metadata, final InputStream stream); @Override String generateIdentifier(final IRI identifier); static final String CONFIG_FILE_BINARY_PATH; static final String CONFIG_FILE_BINARY_HIERARCHY; static final String CONFIG_FILE_BINARY_LENGTH; }