Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-04-25 17:35:20 +0000
committerJohn Arthorne2008-04-25 17:35:20 +0000
commit1b09fcc86f4fb6d76359b2a766ae966611e13b0e (patch)
tree65767cfda87d9e0e34a330ec6749e2a92d49b76c /bundles
parentffc81b85438738c9809aa50a0cf92197351a2827 (diff)
downloadrt.equinox.p2-1b09fcc86f4fb6d76359b2a766ae966611e13b0e.tar.gz
rt.equinox.p2-1b09fcc86f4fb6d76359b2a766ae966611e13b0e.tar.xz
rt.equinox.p2-1b09fcc86f4fb6d76359b2a766ae966611e13b0e.zip
Fixed bug in test
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/MetadataRepositoryManagerTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/MetadataRepositoryManagerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/MetadataRepositoryManagerTest.java
index 53f71545b..c4121ccfc 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/MetadataRepositoryManagerTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/MetadataRepositoryManagerTest.java
@@ -145,7 +145,7 @@ public class MetadataRepositoryManagerTest extends AbstractProvisioningTest {
* Tests that local caching of remote metadata repositories works, and that the
* cache is updated when it becomes stale.
*/
- public void _testMetadataCachingRemoteRepo() throws MalformedURLException, ProvisionException {
+ public void testMetadataCachingRemoteRepo() throws MalformedURLException, ProvisionException {
URL repoLocation = new URL("http://download.eclipse.org/eclipse/updates/3.4milestones/");
if (!repoAvailable(repoLocation))
return;
@@ -167,15 +167,15 @@ public class MetadataRepositoryManagerTest extends AbstractProvisioningTest {
// modify the last modified date to be older than the remote file
cacheFile.setLastModified(0);
// reload the repository and check that the cache was updated
- manager.removeRepository(repoLocation);
+ manager.addRepository(repoLocation);
manager.loadRepository(repoLocation, null);
long lastModified = cacheFile.lastModified();
assertTrue(0 != lastModified);
// reload the repository and check that the cache was not updated
- manager.removeRepository(repoLocation);
+ manager.addRepository(repoLocation);
manager.loadRepository(repoLocation, null);
- assertTrue(lastModified == cacheFile.lastModified());
+ assertEquals(lastModified, cacheFile.lastModified());
cacheFile.delete();
}

Back to the top