266267268269270271272273274275276
Assert.assertNull(deployer.reDeployedUrl); } finally { file.delete(); fdm.stop(); } } public void testUndeployAndDeployAgain() throws Exception {
325326327328329330331332333334335
Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl); } finally { file.delete(); fdm.stop(); } } class FakeDeployer implements Deployer {
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
339340341342343344345346347348349