[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; package org.baeldung.conditionalflow.step;
import org.baeldung.conditionalflow.model.NumberInfo; 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.core.listener.ItemListenerSupport;
import org.springframework.batch.item.ItemProcessor; 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> { public class PrependingStdoutWriter<T> implements ItemWriter<T> {
private String prependText; private String prependText;
private OutputStream writeTo;
public PrependingStdoutWriter(String prependText, OutputStream os) { public PrependingStdoutWriter(String prependText) {
this.prependText = prependText; this.prependText = prependText;
this.writeTo = os;
} }
public PrependingStdoutWriter(String prependText) { public PrependingStdoutWriter(String prependText) {

View File

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