@Test void emptyContinuationLine() { CobolLine continuationLine = new CobolLine(); continuationLine.setType(NORMAL); continuationLine.setIndicatorArea(WS); continuationLine.setContentAreaA(" "); continuationLine.setContentAreaB(" \"RANDOM TEXT "); CobolLine emptyContinuationLine = new CobolLine(); emptyContinuationLine.setType(CONTINUATION); emptyContinuationLine.setIndicatorArea("-"); emptyContinuationLine.setContentAreaA(" "); emptyContinuationLine.setContentAreaB(" "); continuationLine.setSuccessor(emptyContinuationLine); final List<CobolLine> listOfLines = List.of(continuationLine, emptyContinuationLine); CobolLineIndicatorProcessorImpl processor = new CobolLineIndicatorProcessorImpl(); List<CobolLine> outcomeList = processor.processLines(listOfLines); assertEquals( WS + " \"RANDOM TEXT ", outcomeList.get(0).getIndicatorArea() + outcomeList.get(0).getContentArea()); assertEquals( WS + EMPTY_STRING, outcomeList.get(1).getIndicatorArea() + outcomeList.get(1).getContentArea()); }
@Override public List<CobolLine> processLines(final List<CobolLine> lines) { return lines.stream().map(this::processLine).collect(Collectors.toList()); }
CobolLineIndicatorProcessorImpl implements CobolLineIndicatorProcessor { @Override public List<CobolLine> processLines(final List<CobolLine> lines) { return lines.stream().map(this::processLine).collect(Collectors.toList()); } }
CobolLineIndicatorProcessorImpl implements CobolLineIndicatorProcessor { @Override public List<CobolLine> processLines(final List<CobolLine> lines) { return lines.stream().map(this::processLine).collect(Collectors.toList()); }  }
CobolLineIndicatorProcessorImpl implements CobolLineIndicatorProcessor { @Override public List<CobolLine> processLines(final List<CobolLine> lines) { return lines.stream().map(this::processLine).collect(Collectors.toList()); }  @Override List<CobolLine> processLines(final List<CobolLine> lines); @Override CobolLine processLine(final CobolLine line); }
CobolLineIndicatorProcessorImpl implements CobolLineIndicatorProcessor { @Override public List<CobolLine> processLines(final List<CobolLine> lines) { return lines.stream().map(this::processLine).collect(Collectors.toList()); }  @Override List<CobolLine> processLines(final List<CobolLine> lines); @Override CobolLine processLine(final CobolLine line);  }