ReaderTGFF { protected boolean skip(String line) { return !(line.contains(HEADER)); }  SpecificationTypeBased read(String filename); SpecificationTypeBased read(File file); SpecificationTypeBased read(InputStream in); SpecificationTypeBased toSpecification(List<String> in); static final String TGFF_TYPE; static final String PERIOD; static final String MSG_SIZE; static final String RES_ATTRIBUTES; static final String RES_VALUES; static final String HARD_DEADLINE; static final String SOFT_DEADLINE; static final String WIRE; }
@Test public void testSkip() { ReaderTGFF reader = new ReaderTGFF(); Assert.assertTrue(reader.skip("line to be skipped")); Assert.assertFalse(reader.skip(ReaderTGFF.HEADER)); }