8283848586878889909192
{ Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl); deployer.deployedUrl = null; fdm.start(); Assert.assertNull(deployer.deployedUrl); fdm.stop(); } finally { file.delete();
114115116117118119120121122123124
fdm.registerDeployer(deployer); Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl); deployer.deployedUrl = null; fdm.start(); Assert.assertNull(deployer.deployedUrl); fdm.stop(); } finally { file.delete(); }
9293949596979899100101102
URL deployedUrl = deployer.deployedUrl; Assert.assertTrue(expected.toString().equalsIgnoreCase(deployedUrl.toString())); deployer.deployedUrl = null; fdm.start(); Assert.assertNull(deployer.deployedUrl); fdm.stop(); } finally { file.delete();
126127128129130131132133134135136
URL deployedUrl = deployer.deployedUrl; Assert.assertTrue(expected.toString().equalsIgnoreCase(deployedUrl.toString())); deployer.deployedUrl = null; fdm.start(); Assert.assertNull(deployer.deployedUrl); fdm.stop(); } finally { file.delete(); }
230231232233234235236237238239240
file1.delete(); file2.delete(); file3.delete(); } fdm.stop(); } public void testRedeploy() throws Exception { FileDeploymentManager fdm = new FileDeploymentManager(Long.MAX_VALUE);
280281282283284285286287288289290
Assert.assertNull(deployer.reDeployedUrl); } finally { file.delete(); fdm.stop(); } } public void testUndeployAndDeployAgain() throws Exception {
339340341342343344345346347348349
Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl); } finally { file.delete(); fdm.stop(); } } class FakeDeployer implements Deployer {
218219220221222223224225226227228