Add assertion for right downloadpage to loadUpdateList test
-/****************************************************************************
+/**
+ * **************************************************************************
* Copyright (C) 2018 ecsec GmbH.
* All rights reserved.
* Contact: ecsec GmbH (info@ecsec.de)
* and conditions contained in a signed written agreement between
* you and ecsec GmbH.
*
- ***************************************************************************/
-
+ **************************************************************************
+ */
package org.openecard.common.util;
import java.io.IOException;
@@ -133,16 +134,12 @@ public class VersionTest {
public void testLoadUpdateList() throws MalformedURLException, IOException {
URL downloadListAddress = VersionTest.class.getResource("/updatelist.json");
String systemPkg = "deb";
- try {
+ URL expectedDownloadPage = new URL("https://www.openecard.org/downloads_"+systemPkg);
VersionUpdateLoader updateLoader = new VersionUpdateLoader(downloadListAddress, systemPkg);
VersionUpdateList result = updateLoader.loadVersionUpdateList();
Assert.assertFalse(result.getVersionUpdates().isEmpty());
-
- } catch (IllegalArgumentException ex) {
- LOG.info(ex.getMessage(), ex);
- }
-
+ Assert.assertEquals(result.getDownloadPage(), expectedDownloadPage);
}
private VersionUpdate newVersionUpdate(SemanticVersion version) {
