ReaderTGFF { protected double importHyperperiod(String line) { return Double.parseDouble(line.replace(HYPERPERIOD, "").trim()); }  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 testImportHyperperiod() { String line = "@HYPERPERIOD 300"; Double hyperperiod = new ReaderTGFF().importHyperperiod(line); Assert.assertEquals(300l, hyperperiod.longValue()); }