@Test public void write() throws IOException { assertThat(sourcePersister.write(simple, bufferedSource).blockingGet()).isTrue(); }
@Nonnull @Override public Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data) { return sourceFileWriter.write(barCode, data); }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull @Override public Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data) { return sourceFileWriter.write(barCode, data); } }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull @Override public Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data) { return sourceFileWriter.write(barCode, data); } @Inject  SourcePersister(FileSystem fileSystem); }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull @Override public Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data) { return sourceFileWriter.write(barCode, data); } @Inject  SourcePersister(FileSystem fileSystem); static SourcePersister create(FileSystem fileSystem); @Nonnull @Override Maybe<BufferedSource> read(@Nonnull final BarCode barCode); @Nonnull @Override Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data); }
SourcePersister implements Persister<BufferedSource, BarCode> { @Nonnull @Override public Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data) { return sourceFileWriter.write(barCode, data); } @Inject  SourcePersister(FileSystem fileSystem); static SourcePersister create(FileSystem fileSystem); @Nonnull @Override Maybe<BufferedSource> read(@Nonnull final BarCode barCode); @Nonnull @Override Single<Boolean> write(@Nonnull final BarCode barCode, @Nonnull final BufferedSource data);  }