@Test public void test_setManager() throws FileSystemException { final StandardFileSystemManager fileSystemManager = new StandardFileSystemManager(); VFS.setManager(fileSystemManager); Assert.assertEquals(fileSystemManager, VFS.getManager()); // Reset global for other tests VFS.setManager(null); Assert.assertNotNull(VFS.getManager()); Assert.assertNotEquals(fileSystemManager, VFS.getManager()); } }
@Test public void test_setManager() throws FileSystemException { final StandardFileSystemManager fileSystemManager = new StandardFileSystemManager(); VFS.setManager(fileSystemManager); Assert.assertEquals(fileSystemManager, VFS.getManager()); // Reset global for other tests VFS.setManager(null); Assert.assertNotNull(VFS.getManager()); Assert.assertNotEquals(fileSystemManager, VFS.getManager()); } }