AbstractFileLineIterator implements
                                              FileLineIterator<T> { protected boolean isCheckByte(InputFileColumn inputFileColumn) { if (0 < inputFileColumn.bytes()) { return true; } return false; } AbstractFileLineIterator(String fileName, Class<T> clazz,
            Map<String, ColumnParser> columnParserMap); @Override boolean hasNext(); @Override T next(); @Override void remove(); @Override void closeFile(); @Override List<String> getHeader(); @Override List<String> getTrailer(); @Override void skip(int skipLines); int getCurrentLineCount();  }
@Test public void testIsCheckByte01() throws Exception { String fileName = this.getClass().getResource("File_Empty.txt") .getPath(); Map<String, ColumnParser> columnParserMap = new HashMap<String, ColumnParser>(); columnParserMap.put("java.lang.String", new NullColumnParser()); AbstractFileLineIterator<FixedFileLine_Stub01> fileLineWriter = new AbstractFileLineIteratorImpl02<FixedFileLine_Stub01>( fileName, FixedFileLine_Stub01.class, columnParserMap); Field column = FixedFileLine_Stub01.class.getDeclaredFields()[0]; InputFileColumn inputFileColumn = column .getAnnotation(InputFileColumn.class); boolean result = fileLineWriter.isCheckByte(inputFileColumn); assertTrue(result); }
@Test public void testIsCheckByte02() throws Exception { String fileName = this.getClass().getResource("File_Empty.txt") .getPath(); Map<String, ColumnParser> columnParserMap = new HashMap<String, ColumnParser>(); columnParserMap.put("java.lang.String", new NullColumnParser()); AbstractFileLineIterator<AbstractFileLineIterator_Stub80> fileLineWriter = new AbstractFileLineIteratorImpl02<AbstractFileLineIterator_Stub80>( fileName, AbstractFileLineIterator_Stub80.class, columnParserMap); Field column = AbstractFileLineIterator_Stub80.class .getDeclaredFields()[0]; InputFileColumn inputFileColumn = column .getAnnotation(InputFileColumn.class); boolean result = fileLineWriter.isCheckByte(inputFileColumn); assertFalse(result); }