()
| 722 | } |
| 723 | |
| 724 | @Test (expected = FileNotFoundException.class) |
| 725 | public void importFileNotFound() throws Exception { |
| 726 | PowerMockito.doThrow(new FileNotFoundException()).when(TextImporter.class, |
| 727 | PowerMockito.method(TextImporter.class, "open", String.class)) |
| 728 | .withArguments(anyString()); |
| 729 | Integer points = (Integer)importFile.invoke(null, client, tsdb, "file", false); |
| 730 | assertEquals(0, (int)points); |
| 731 | } |
| 732 | |
| 733 | // TODO - figure out how to trigger a throttling exception |
| 734 |