diff --git a/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java b/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java index df540d2d8fbcb6100cb50be68431e32a4035c18c..4b4bf3f07d665a841ca79b929c340777b9030efb 100644 --- a/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java +++ b/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java @@ -43,7 +43,8 @@ public class BigFileCacheTest extends AnnotationTestFunctions { Logger logger = Logger.getLogger(BigFileCacheTest.class); - String ftpUrl = "ftp://ftp.informatik.rwth-aachen.de/pub/Linux/debian-cd/current/i386/bt-cd/MD5SUMS"; + String ftpUrl = "ftp://ftp.informatik.rwth-aachen.de/README"; + String ftpUrlPartContent = "Welcome"; String httpUrl = "https://www.google.pl/humans.txt"; @@ -68,7 +69,7 @@ public class BigFileCacheTest extends AnnotationTestFunctions { File f = new File(localFile); assertTrue(f.exists()); String content = super.readFile(localFile); - assertTrue(content.contains("iso")); + assertTrue(content.contains(ftpUrlPartContent)); int warnigsCount = getWarnings().size(); // when we try to download file that is already downloaded there should be @@ -375,7 +376,7 @@ public class BigFileCacheTest extends AnnotationTestFunctions { out.close(); String content = super.readFile(localFile); - assertFalse(content.contains("iso")); + assertFalse(content.contains(ftpUrlPartContent)); assertFalse(bigFileCache.isLocalFileUpToDate(ftpUrl)); bigFileCache.updateFile(ftpUrl, false); @@ -383,7 +384,7 @@ public class BigFileCacheTest extends AnnotationTestFunctions { localFile = bigFileCache.getAbsolutePathForFile(ftpUrl); content = super.readFile(localFile); - assertTrue(content.contains("iso")); + assertTrue(content.contains(ftpUrlPartContent)); // now try update asynchronously f = new File(localFile);