1 17 18 package org.apache.tools.ant.taskdefs; 19 20 import java.io.File ; 21 import java.io.FileReader ; 22 import java.io.IOException ; 23 import java.util.Date ; 24 import java.util.Vector ; 25 import java.util.Enumeration ; 26 import org.apache.tools.ant.BuildFileTest; 27 import org.apache.tools.ant.Project; 28 29 33 public class SignJarTest extends BuildFileTest { 34 35 public static final String EXPANDED_MANIFEST 36 = "src/etc/testcases/taskdefs/manifests/META-INF/MANIFEST.MF"; 37 38 public SignJarTest(String name) { 39 super(name); 40 } 41 42 public void setUp() { 43 configureProject("src/etc/testcases/taskdefs/signjar.xml"); 44 } 45 46 public void tearDown() { 47 executeTarget("clean"); 48 } 49 50 public void testBasicSigning() { 51 executeTarget("basic"); 52 } 53 54 public void testSigFile() { 55 executeTarget("sigfile"); 56 } 57 58 public void testMaxMemory() { 59 executeTarget("maxmemory"); 60 } 61 62 public void testURLKeystoreFile() { 63 executeTarget("urlKeystoreFile"); 64 } 65 66 public void testURLKeystoreHTTP() { 67 executeTarget("urlKeystoreHTTP"); 68 } 69 } 70 | Popular Tags |