@@ -86,13 +86,17 @@ public void testGetCachedReleaseList() throws Exception {
86
86
87
87
long msRange = TimeStampUtility .timestampInMs () - downloader .getCachedReleaseResponseFile ().lastModified ();
88
88
assertTrue (msRange < 10000 ); //Make sure that file created is no older than 10 seconds
89
+ System .out .println ("INITIAL RESPONSE : " + initialResponse );
90
+ System .out .println ("downloader.getCachedReleaseList() : " + downloader .getCachedReleaseList ());
89
91
assertEquals (initialResponse , downloader .getCachedReleaseList ());
90
92
91
93
Thread .sleep (5000 );
92
94
//Let file expire and try to download cached file again, make sure response is still the same
93
95
//But the file gets re-written
94
96
95
97
assertEquals (initialResponse , downloader .getCachedReleaseList ());
98
+ System .out .println ("INITIAL RESPONSE : " + initialResponse );
99
+ System .out .println ("downloader.getCachedReleaseList() : " + downloader .getCachedReleaseList ());
96
100
long msRange2 = TimeStampUtility .timestampInMs () - downloader .getCachedReleaseResponseFile ().lastModified ();
97
101
assertTrue (msRange2 < 2000 ); //Make sure that file created is no older than 2 seconds
98
102
}
@@ -156,22 +160,24 @@ public void testBadVersion() throws Exception {
156
160
157
161
@ Test
158
162
public void testGetAllAssets () throws Exception {
163
+ String expectedVersionOldest = "1.2.3" ;
164
+ String expectedVersionFifthOldest = "1.3.3" ;
159
165
List <Map <String , String >> actual = downloader .getAllDownloadableAssets ();
160
166
int actualSize = actual .size ();
161
167
162
168
assertTrue (actualSize > 0 );
163
169
164
- assertEquals ("SeleniumGridExtras-1.1.9 -SNAPSHOT-jar-with-dependencies.jar" ,
170
+ assertEquals ("SeleniumGridExtras-" + expectedVersionOldest + " -SNAPSHOT-jar-with-dependencies.jar" ,
165
171
actual .get (actualSize - 1 ).keySet ().toArray ()[0 ]);
166
172
167
- assertEquals ("https://github.com/groupon/Selenium-Grid-Extras/releases/download/1.1.9 /SeleniumGridExtras-1.1.9 -SNAPSHOT-jar-with-dependencies.jar" ,
173
+ assertEquals ("https://github.com/groupon/Selenium-Grid-Extras/releases/download/v" + expectedVersionOldest + " /SeleniumGridExtras-" + expectedVersionOldest + " -SNAPSHOT-jar-with-dependencies.jar" ,
168
174
actual .get (actualSize - 1 ).values ().toArray ()[0 ]);
169
175
170
176
171
- assertEquals ("SeleniumGridExtras-1.2.4 -SNAPSHOT-jar-with-dependencies.jar" ,
177
+ assertEquals ("SeleniumGridExtras-" + expectedVersionFifthOldest + " -SNAPSHOT-jar-with-dependencies.jar" ,
172
178
actual .get (actualSize - 5 ).keySet ().toArray ()[0 ]);
173
179
174
- assertEquals ("https://github.com/groupon/Selenium-Grid-Extras/releases/download/v1.2.4 /SeleniumGridExtras-1.2.4 -SNAPSHOT-jar-with-dependencies.jar" ,
180
+ assertEquals ("https://github.com/groupon/Selenium-Grid-Extras/releases/download/v" + expectedVersionFifthOldest + " /SeleniumGridExtras-" + expectedVersionFifthOldest + " -SNAPSHOT-jar-with-dependencies.jar" ,
175
181
actual .get (actualSize - 5 ).values ().toArray ()[0 ]);
176
182
}
177
183
0 commit comments