Methods Summary |
---|
public void | NotestVerifyJarNotInKeystore()
expectBuildExceptionContaining("testVerifyJarNotInKeystore",
"signature not in keystore",
VerifyJar.ERROR_NO_VERIFY);
|
private boolean | isOffline()check for being offline
return Boolean.getBoolean("offline");
|
public void | setUp()
configureProject("src/etc/testcases/taskdefs/signjar.xml");
|
public void | tearDown()
executeTarget("clean");
|
public void | testBasicSigning()
executeTarget("basic");
|
public void | testDestDir()
executeTarget("testDestDir");
|
public void | testDestDirAndSignedJar()
expectBuildExceptionContaining("testFilesetAndSignedJar",
"incompatible attributes",
SignJar.ERROR_SIGNEDJAR_AND_PATHS);
|
public void | testDestDirAndSignedJar2()
expectBuildExceptionContaining("testPathAndSignedJar",
"incompatible attributes",
SignJar.ERROR_SIGNEDJAR_AND_PATHS);
|
public void | testDestDirFileset()
executeTarget("testDestDirFileset");
|
public void | testDestDirPath()
executeTarget("testDestDirPath");
|
public void | testFileset()
executeTarget("testFileset");
|
public void | testFilesetAndJar()
executeTarget("testFilesetAndJar");
|
public void | testFilesetAndSignedJar()
expectBuildExceptionContaining("testFilesetAndSignedJar",
"incompatible attributes",
SignJar.ERROR_SIGNEDJAR_AND_PATHS);
|
public void | testMapperFileset()
executeTarget("testMapperFileset");
|
public void | testMapperNoDest()
expectBuildExceptionContaining("testMapperNoDest",
"two mappers",
SignJar.ERROR_MAPPER_WITHOUT_DEST);
|
public void | testMapperPath()
executeTarget("testMapperPath");
|
public void | testMaxMemory()
executeTarget("maxmemory");
|
public void | testNoAlias()
expectBuildExceptionContaining("testNoAlias",
"no alias",
SignJar.ERROR_NO_ALIAS);
|
public void | testNoFiles()
expectBuildExceptionContaining("testNoFiles",
"no files",
SignJar.ERROR_NO_SOURCE);
|
public void | testNoStorePass()
expectBuildExceptionContaining("testNoStorePass",
"no password",
SignJar.ERROR_NO_STOREPASS);
|
public void | testPath()
executeTarget("testPath");
|
public void | testPathAndJar()
executeTarget("testPathAndJar");
|
public void | testPathAndSignedJar()
expectBuildExceptionContaining("testPathAndSignedJar",
"incompatible attributes",
SignJar.ERROR_SIGNEDJAR_AND_PATHS);
|
public void | testPreserveLastModified()
executeTarget("preserveLastModified");
|
public void | testSigFile()
executeTarget("sigfile");
|
public void | testSignedJar()
executeTarget("testSignedJar");
|
public void | testSysProperty()
executeTarget("testSysProperty");
|
public void | testTsaLocalhost()
//only test on java1.5+
if(JavaEnvUtils.getJavaVersionNumber()>=15) {
expectBuildException("testTsaLocalhost",
"no TSA at localhost:0");
assertLogContaining("java.net.ConnectException");
}
|
public void | testTwoMappers()
expectBuildExceptionContaining("testTwoMappers",
"two mappers",
SignJar.ERROR_TOO_MANY_MAPPERS);
|
public void | testURLKeystoreFile()
executeTarget("urlKeystoreFile");
|
public void | testURLKeystoreHTTP()
if(!isOffline()) {
executeTarget("urlKeystoreHTTP");
}
|
public void | testVerifyFileset()
executeTarget("testVerifyFileset");
|
public void | testVerifyJar()
executeTarget("testVerifyJar");
|
public void | testVerifyJarUnsigned()
expectBuildExceptionContaining("testVerifyJarUnsigned",
"unsigned JAR file",
VerifyJar.ERROR_NO_VERIFY);
|
public void | testVerifyNoArgs()
expectBuildExceptionContaining("testVerifyNoArgs",
"no args",
AbstractJarSignerTask.ERROR_NO_SOURCE);
|
public void | testVerifyPath()
executeTarget("testVerifyPath");
|