BatchSizes { public static Builder builder() { return new Builder(); } private  BatchSizes(int fetchMetadata, int fetchHeaders, int fetchBody, int fetchFull, Optional<Integer> copyBatchSize, Optional<Integer> moveBatchSize); static BatchSizes defaultValues(); static BatchSizes uniqueBatchSize(int batchSize); static Builder builder(); int getFetchMetadata(); int getFetchHeaders(); int getFetchBody(); int getFetchFull(); Optional<Integer> getCopyBatchSize(); Optional<Integer> getMoveBatchSize(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString(); static final int DEFAULT_BATCH_SIZE; }
@Test void fetchMetadataShouldThrowWhenNegative() { assertThatThrownBy(() -> BatchSizes.builder() .fetchMetadata(-1)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchMetadataShouldThrowWhenZero() { assertThatThrownBy(() -> BatchSizes.builder() .fetchMetadata(0)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchHeadersShouldThrowWhenNegative() { assertThatThrownBy(() -> BatchSizes.builder() .fetchHeaders(-1)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchHeadersShouldThrowWhenZero() { assertThatThrownBy(() -> BatchSizes.builder() .fetchHeaders(0)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchBodyShouldThrowWhenNegative() { assertThatThrownBy(() -> BatchSizes.builder() .fetchBody(-1)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchBodyShouldThrowWhenZero() { assertThatThrownBy(() -> BatchSizes.builder() .fetchBody(0)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchFullShouldThrowWhenNegative() { assertThatThrownBy(() -> BatchSizes.builder() .fetchFull(-1)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fetchFullShouldThrowWhenZero() { assertThatThrownBy(() -> BatchSizes.builder() .fetchFull(0)) .isInstanceOf(IllegalArgumentException.class); }
@Test void copyBatchSizeShouldThrowWhenNegative() { assertThatThrownBy(() -> BatchSizes.builder() .copyBatchSize(-1)) .isInstanceOf(IllegalArgumentException.class); }
@Test void copyBatchSizeShouldThrowWhenZero() { assertThatThrownBy(() -> BatchSizes.builder() .copyBatchSize(0)) .isInstanceOf(IllegalArgumentException.class); }
@Test void moveBatchSizeShouldThrowWhenNegative() { assertThatThrownBy(() -> BatchSizes.builder() .moveBatchSize(-1)) .isInstanceOf(IllegalArgumentException.class); }
@Test void moveBatchSizeShouldThrowWhenZero() { assertThatThrownBy(() -> BatchSizes.builder() .moveBatchSize(0)) .isInstanceOf(IllegalArgumentException.class); }