From 667af128d0adfeee2aa4748ab58411c91bc4905f Mon Sep 17 00:00:00 2001 From: mcentner Date: Tue, 26 Jan 2010 16:27:04 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/mocca/branches/mocca-1.2.11-sha2@600 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/bku/webstart/ConfiguratorTest.java | 197 --------------------- 1 file changed, 197 deletions(-) delete mode 100644 mocca-1.2.11/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java (limited to 'mocca-1.2.11/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java') diff --git a/mocca-1.2.11/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java b/mocca-1.2.11/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java deleted file mode 100644 index 4f5798d5..00000000 --- a/mocca-1.2.11/BKUWebStart/src/test/java/at/gv/egiz/bku/webstart/ConfiguratorTest.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package at.gv.egiz.bku.webstart; - -import java.io.File; -import java.net.URI; -import java.util.zip.ZipOutputStream; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import static org.junit.Assert.*; - -/** - * - * @author clemens - */ -public class ConfiguratorTest { - - - public ConfiguratorTest() { - } - - @BeforeClass - public static void setUpClass() throws Exception { - } - - @AfterClass - public static void tearDownClass() throws Exception { - } - - @Before - public void setUp() { - } - - @After - public void tearDown() { - } - - /** - * Test of ensureConfiguration method, of class Configurator. - */ - @Ignore - @Test - public void testEnsureConfiguration() throws Exception { - System.out.println("ensureConfiguration"); - Configurator instance = new Configurator(); - instance.ensureConfiguration(); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of ensureCertificates method, of class Configurator. - */ - @Ignore - @Test - public void testEnsureCertificates() throws Exception { - System.out.println("ensureCertificates"); - Configurator instance = new Configurator(); - instance.ensureCertificates(); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of isCertRenewed method, of class Configurator. - */ - @Ignore - @Test - public void testIsCertRenewed() { - System.out.println("isCertRenewed"); - Configurator instance = new Configurator(); - boolean expResult = false; - boolean result = instance.isCertRenewed(); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of readVersion method, of class Configurator. - */ - @Ignore - @Test - public void testReadVersion() { - System.out.println("readVersion"); - File versionFile = null; - String expResult = ""; - String result = Configurator.readVersion(versionFile); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of updateRequired method, of class Configurator. - */ - @Test - public void testUpdateRequired() { - System.out.println("updateRequired"); - String oldVersion = "1.0.9-SNAPSHOT-r123"; - String minVersion = "1.0.9-SNAPSHOT"; - boolean expResult = false; - boolean result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9-SNAPSHOT-r123"; - minVersion = "1.0.9"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9-SNAPSHOT-r123"; - minVersion = "1.0.10-r432"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9-r123"; - minVersion = "1.0.10-SNAPSHOT"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9-r123"; - minVersion = "1.0.9-SNAPSHOT"; - expResult = false; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9-SNAPSHOT"; - minVersion = "1.0.9-r349"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9-SNAPSHOT-r123"; - minVersion = "1.0.10-SNAPSHOT"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9"; - minVersion = "1.0.9.1-SNAPSHOT"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1.0.9"; - minVersion = "1.0.8.99-SNAPSHOT"; - expResult = false; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - - oldVersion = "1"; - minVersion = "2"; - expResult = true; - result = Configurator.updateRequired(oldVersion, minVersion); - assertEquals(expResult, result); - } - - /** - * Test of backupAndDelete method, of class Configurator. - */ - @Ignore - @Test - public void testBackupAndDelete() throws Exception { - System.out.println("backupAndDelete"); - File dir = null; - URI relativeTo = null; - ZipOutputStream zip = null; - Configurator.backupAndDelete(dir, relativeTo, zip); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of initConfig method, of class Configurator. - */ - @Ignore - @Test - public void testInitConfig() throws Exception { - System.out.println("initConfig"); - File configDir = null; - Configurator instance = new Configurator(); - instance.initConfig(configDir); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - -} \ No newline at end of file -- cgit v1.2.3