removed tests that no longer apply

This commit is contained in:
Sebastian Stenzel
2016-01-12 13:13:46 +01:00
parent 55bee3d0d5
commit b2a90ddcf6

View File

@@ -24,24 +24,6 @@ public class FileSystemResourceLocatorFactoryTest {
factory = new FileSystemResourceLocatorFactory(URI.create("http://localhost/contextroot"), fs);
}
@Test
public void testCreateFoldersEvenWhenRequestingFiles() {
FileSystemResourceLocator locator = factory.createResourceLocator(null, null, "/existingFolder");
Assert.assertTrue(locator instanceof FolderLocator);
locator = factory.createResourceLocator("http://localhost/contextroot", "http://localhost/contextroot/existingFolder");
Assert.assertTrue(locator instanceof FolderLocator);
}
@Test
public void testCreateFilesEvenWhenRequestingFolders() {
FileSystemResourceLocator locator = factory.createResourceLocator(null, null, "/existingFile/");
Assert.assertTrue(locator instanceof FileLocator);
locator = factory.createResourceLocator("http://localhost/contextroot", "http://localhost/contextroot/existingFile/");
Assert.assertTrue(locator instanceof FileLocator);
}
@Test
public void testCreateFolders() {
FileSystemResourceLocator locator = factory.createResourceLocator(null, null, "/foo/bar/");