20
20
21
21
public class GridExtrasDownloaderTest {
22
22
23
- public static final String EXPECTED_VERSION = "1.3.3 " ;
24
- public static final String EXPECTED_133_DOWNLOAD_URL = "https://github.com/groupon/Selenium-Grid-Extras/releases/download/v1.3.3 /SeleniumGridExtras-1.3.3 -SNAPSHOT-jar-with-dependencies.jar" ;
23
+ public static final String EXPECTED_VERSION = "1.10.1 " ;
24
+ public static final String EXPECTED_1101_DOWNLOAD_URL = "https://github.com/groupon/Selenium-Grid-Extras/releases/download/1.10.1 /SeleniumGridExtras-1.10.1 -SNAPSHOT-jar-with-dependencies.jar" ;
25
25
public static final String GRID_EXTRAS_RELEASE_API_URL = "https://api.github.com/repos/groupon/Selenium-Grid-Extras/releases" ;
26
26
public static final String EXPECTED_171_URL = "https://github.com/groupon/Selenium-Grid-Extras/releases/download/v1.7.1/SeleniumGridExtras-1.7.1-SNAPSHOT-jar-with-dependencies.jar" ;
27
- public static final String EXPECTED_JAR_NAME = "SeleniumGridExtras-1.3.3 -SNAPSHOT-jar-with-dependencies.jar" ;
27
+ public static final String EXPECTED_JAR_NAME = "SeleniumGridExtras-1.10.1 -SNAPSHOT-jar-with-dependencies.jar" ;
28
28
public static final int GRID_EXTRAS_AUTO_UPDATE_CHECK_INTERVAL = 2000 ;
29
29
private GridExtrasDownloader downloader ;
30
30
private File testDir = new File ("grid_extras_downloader_test" );
@@ -119,7 +119,7 @@ public void testGetVersion() throws Exception {
119
119
120
120
@ Test
121
121
public void testGetDownloadJarUrl () throws Exception {
122
- assertEquals (EXPECTED_133_DOWNLOAD_URL , downloader .getJarUrl ());
122
+ assertEquals (EXPECTED_1101_DOWNLOAD_URL , downloader .getJarUrl ());
123
123
124
124
GridExtrasDownloader downloader2 = new GridExtrasDownloader ();
125
125
@@ -144,9 +144,8 @@ public void testDownload() throws Exception {
144
144
assertEquals (true , downloader .download ());
145
145
assertEquals (true , expectedFile .exists ());
146
146
147
- assertTrue (expectedFile .length () > 4697835 );
148
- assertTrue (expectedFile .length () < 8697835 );
149
-
147
+ assertTrue ("Expected File Length " + expectedFile .length () + " should be greater than 45610976" , expectedFile .length () > 45610976 );
148
+ assertTrue ("Expected File Length " + expectedFile .length () + " should be less than 65610976" , expectedFile .length () < 65610976 );
150
149
}
151
150
152
151
@ Test
0 commit comments