[BAEL-3646] addressing pr issues

This commit is contained in:
mike b 2020-03-24 10:36:56 -04:00
parent f953196ddf
commit 51ad7ac413
3 changed files with 3 additions and 7 deletions

View File

@ -1,9 +1,6 @@
package org.baeldung.conditionalflow.step;
import org.baeldung.conditionalflow.model.NumberInfo;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.annotation.BeforeStep;
import org.springframework.batch.core.listener.ItemListenerSupport;
import org.springframework.batch.item.ItemProcessor;

View File

@ -7,11 +7,9 @@ import org.springframework.batch.item.ItemWriter;
public class PrependingStdoutWriter<T> implements ItemWriter<T> {
private String prependText;
private OutputStream writeTo;
public PrependingStdoutWriter(String prependText, OutputStream os) {
public PrependingStdoutWriter(String prependText) {
this.prependText = prependText;
this.writeTo = os;
}
public PrependingStdoutWriter(String prependText) {

View File

@ -7,9 +7,10 @@ import org.baeldung.conditionalflow.model.NumberInfo;
import org.junit.jupiter.api.Test;
public class NumberInfoGeneratorUnitTest {
@Test
public void givenArray_whenGenerator_correctOrderAndValue() {
int[] numbers = new int[]{1, -2, 4, -10};
int[] numbers = new int[] { 1, -2, 4, -10 };
NumberInfoGenerator numberGenerator = new NumberInfoGenerator(numbers);
assertEquals(new NumberInfo(numbers[0]), numberGenerator.read());
assertEquals(new NumberInfo(numbers[1]), numberGenerator.read());