Author: ataylor
Date: 2011-09-07 10:16:34 -0400 (Wed, 07 Sep 2011)
New Revision: 11300
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java
Log:
https://issues.jboss.org/browse/JBPAPP-6035
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java 2011-09-07
13:38:25 UTC (rev 11299)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/core/deployers/impl/FileDeploymentManagerTest.java 2011-09-07
14:16:34 UTC (rev 11300)
@@ -80,7 +80,9 @@
fdm.start();
try
{
- Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl);
+ URL expected = file.toURI().toURL();
+ URL deployedUrl = deployer.deployedUrl;
+
Assert.assertTrue(expected.toString().equalsIgnoreCase(deployedUrl.toString()));
deployer.deployedUrl = null;
fdm.start();
Assert.assertNull(deployer.deployedUrl);
@@ -112,7 +114,9 @@
try
{
fdm.registerDeployer(deployer);
- Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl);
+ URL expected = file.toURI().toURL();
+ URL deployedUrl = deployer.deployedUrl;
+
Assert.assertTrue(expected.toString().equalsIgnoreCase(deployedUrl.toString()));
deployer.deployedUrl = null;
fdm.start();
Assert.assertNull(deployer.deployedUrl);
@@ -254,7 +258,9 @@
Assert.assertEquals(1, fdm.getDeployers().size());
Assert.assertTrue(fdm.getDeployers().contains(deployer));
Assert.assertEquals(1, fdm.getDeployed().size());
- Assert.assertEquals(file.toURI().toURL(), deployer.reDeployedUrl);
+ URL expected = file.toURI().toURL();
+ URL deployedUrl = deployer.deployedUrl;
+
Assert.assertTrue(expected.toString().equalsIgnoreCase(deployedUrl.toString()));
Pair<URL, Deployer> pair = new Pair<URL, Deployer>(url, deployer);
Assert.assertEquals(oldLastModified + 1000,
fdm.getDeployed().get(pair).lastModified);
deployer.reDeployedUrl = null;