[BAEL-3646] addressing pr issues
This commit is contained in:
parent
f953196ddf
commit
51ad7ac413
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue