()
| 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 { |
nothing calls this directly
no test coverage detected