()
| 286 | } |
| 287 | |
| 288 | @Test |
| 289 | public void testMissingTime() throws ScannerException, ParserException { |
| 290 | |
| 291 | expectedEx.expect(ParserException.class); |
| 292 | expectedEx.expectMessage(ParserException.INVALID_TIME_FORMAT); |
| 293 | |
| 294 | List<String> tokens = getTokens("T: D->Pass => DM"); |
| 295 | |
| 296 | new Parser(tokens).parse(); |
| 297 | } |
| 298 | |
| 299 | private List<String> getTokens(String s) throws ScannerException { |
| 300 | return new Scanner(s).scan(); |