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

Method dumpToFilesCreateNonexistentDirectory

test/graph/TestPlot.java:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 @Test
74 public void dumpToFilesCreateNonexistentDirectory() throws Exception {
75 PowerMockito.when(mockFile, "exists").thenReturn(false);
76 PowerMockito.when(mockFile, "mkdirs").thenReturn(true);
77 plot.dumpToFiles("/temp/opentsdb/s0M3haSh");
78 verify(mockFile, times(1)).mkdirs();
79 }
80
81 @Test(expected = IllegalArgumentException.class)
82 public void dumpToFilesCreateNonexistentDirectoryFail() throws Exception {

Callers

nothing calls this directly

Calls 1

dumpToFilesMethod · 0.80

Tested by

no test coverage detected