@Test(groups = {"fast-unit"}) public void should_bePossibleToGetPathToFile_with_fileName() { File file = createFile(); Path expected = putter.getPathForFile(file); Path actual = putter.getPathForFileName(file.getName()); assertEquals(actual, expected); }
@Test(groups = {"fast-unit"}) public void path_where_localFileIsPut_should_differForDifferentFiles() { File file1 = createFile(); File file2 = createFile(); assertTrue(!file1.getAbsolutePath().equals(file2.getAbsolutePath())); Path path1 = putter.getPathForFile(file1); Path path2 = putter.getPathForFile(file2); assertTrue(!path1.equals(path2)); }
@Test(groups = {"fast-unit"}) public void should_beAbleToGetPath_where_fileIsPut() { assertNotNull(putter.getPathForFile(createFile())); }