@Test public void testGetSerializationStrategy() { PersistenceStrategy<Data> persistenceStrategy = mock(PersistenceStrategy.class); Context context = RuntimeEnvironment.application; SizeBatchingStrategy sizeBatchingStrategy = new SizeBatchingStrategy(5, persistenceStrategy); OnBatchReadyListener<Data, Batch<Data>> onBatchReadyListener = mock(OnBatchReadyListener.class); SerializationStrategy<Data, Batch<Data>> serializationStrategy = mock(SerializationStrategy.class); BatchController batchController = new BatchManager.Builder() .setSerializationStrategy(serializationStrategy) .setBatchingStrategy(sizeBatchingStrategy) .setHandler(null) .setOnBatchReadyListener(onBatchReadyListener) .build(context); Assert.assertNotNull(batchController.getSerializationStrategy()); }
@Override public SerializationStrategy<E, T> getSerializationStrategy() { return this.serializationStrategy; }
BatchManager implements BatchController<E, T> { @Override public SerializationStrategy<E, T> getSerializationStrategy() { return this.serializationStrategy; } }
BatchManager implements BatchController<E, T> { @Override public SerializationStrategy<E, T> getSerializationStrategy() { return this.serializationStrategy; } protected  BatchManager(Builder builder, final Context context); }
BatchManager implements BatchController<E, T> { @Override public SerializationStrategy<E, T> getSerializationStrategy() { return this.serializationStrategy; } protected  BatchManager(Builder builder, final Context context); @Override void addToBatch(final Collection<E> dataCollection); @Override Handler getHandler(); @Override SerializationStrategy<E, T> getSerializationStrategy(); @Override void flush(final boolean forced); void initialize(BatchController<E, T> batchController, Context context,
                           OnBatchReadyListener<E, T> onBatchReadyListener, Handler handler); }
BatchManager implements BatchController<E, T> { @Override public SerializationStrategy<E, T> getSerializationStrategy() { return this.serializationStrategy; } protected  BatchManager(Builder builder, final Context context); @Override void addToBatch(final Collection<E> dataCollection); @Override Handler getHandler(); @Override SerializationStrategy<E, T> getSerializationStrategy(); @Override void flush(final boolean forced); void initialize(BatchController<E, T> batchController, Context context,
                           OnBatchReadyListener<E, T> onBatchReadyListener, Handler handler);  }