MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / importFileNotFound

Method importFileNotFound

test/tools/TestTextImporter.java:724–731  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

methodMethod · 0.80

Tested by

no test coverage detected