You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2006/12/08 10:54:22 UTC
svn commit: r483900 -
/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
Author: smishura
Date: Fri Dec 8 01:54:21 2006
New Revision: 483900
URL: http://svn.apache.org/viewvc?view=rev&rev=483900
Log:
Remove VM-testing
Modified:
harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/BadPaddingExceptionTest.java
harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/IllegalBlockSizeExceptionTest.java
harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/NoSuchPaddingExceptionTest.java
harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ShortBufferExceptionTest.java
Modified: harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/BadPaddingExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/BadPaddingExceptionTest.java?view=diff&rev=483900&r1=483899&r2=483900
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/BadPaddingExceptionTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/BadPaddingExceptionTest.java Fri Dec 8 01:54:21 2006
@@ -52,11 +52,6 @@
static Throwable tCause = new Throwable("Throwable for exception");
- static String createErr(Exception tE, Exception eE) {
- return "BadPaddingException: ".concat(tE.toString()).concat(
- " is not equal to caught exception: ").concat(eE.toString());
- }
-
/**
* Test for <code>BadPaddingException()</code> constructor Assertion:
* constructs BadPaddingException with no detail message
@@ -65,11 +60,6 @@
BadPaddingException tE = new BadPaddingException();
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
/**
@@ -84,11 +74,6 @@
assertEquals("getMessage() must return: ".concat(msgs[i]), tE
.getMessage(), msgs[i]);
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
}
@@ -101,11 +86,5 @@
BadPaddingException tE = new BadPaddingException(msg);
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
-
}
Modified: harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/IllegalBlockSizeExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/IllegalBlockSizeExceptionTest.java?view=diff&rev=483900&r1=483899&r2=483900
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/IllegalBlockSizeExceptionTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/IllegalBlockSizeExceptionTest.java Fri Dec 8 01:54:21 2006
@@ -53,11 +53,6 @@
static Throwable tCause = new Throwable("Throwable for exception");
- static String createErr(Exception tE, Exception eE) {
- return "IllegalBlockSizeException: ".concat(tE.toString()).concat(
- " is not equal to caught exception: ").concat(eE.toString());
- }
-
/**
* Test for <code>IllegalBlockSizeException()</code> constructor
* Assertion: constructs IllegalBlockSizeException with no detail message
@@ -66,11 +61,6 @@
IllegalBlockSizeException tE = new IllegalBlockSizeException();
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
/**
@@ -85,11 +75,6 @@
assertEquals("getMessage() must return: ".concat(msgs[i]), tE
.getMessage(), msgs[i]);
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
}
@@ -103,11 +88,5 @@
IllegalBlockSizeException tE = new IllegalBlockSizeException(msg);
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
-
}
Modified: harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/NoSuchPaddingExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/NoSuchPaddingExceptionTest.java?view=diff&rev=483900&r1=483899&r2=483900
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/NoSuchPaddingExceptionTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/NoSuchPaddingExceptionTest.java Fri Dec 8 01:54:21 2006
@@ -53,11 +53,6 @@
static Throwable tCause = new Throwable("Throwable for exception");
- static String createErr(Exception tE, Exception eE) {
- return "NoSuchPaddingException: ".concat(tE.toString()).concat(
- " is not equal to caught exception: ").concat(eE.toString());
- }
-
/**
* Test for <code>NoSuchPaddingException()</code> constructor Assertion:
* constructs NoSuchPaddingException with no detail message
@@ -66,11 +61,6 @@
NoSuchPaddingException tE = new NoSuchPaddingException();
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
/**
@@ -85,11 +75,6 @@
assertEquals("getMessage() must return: ".concat(msgs[i]), tE
.getMessage(), msgs[i]);
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
}
@@ -103,11 +88,5 @@
NoSuchPaddingException tE = new NoSuchPaddingException(msg);
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
-
}
Modified: harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ShortBufferExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ShortBufferExceptionTest.java?view=diff&rev=483900&r1=483899&r2=483900
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ShortBufferExceptionTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ShortBufferExceptionTest.java Fri Dec 8 01:54:21 2006
@@ -52,11 +52,6 @@
static Throwable tCause = new Throwable("Throwable for exception");
- static String createErr(Exception tE, Exception eE) {
- return "ShortBufferException: ".concat(tE.toString()).concat(
- " is not equal to caught exception: ").concat(eE.toString());
- }
-
/**
* Test for <code>ShortBufferException()</code> constructor Assertion:
* constructs ShortBufferException with no detail message
@@ -65,11 +60,6 @@
ShortBufferException tE = new ShortBufferException();
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
/**
@@ -84,11 +74,6 @@
assertEquals("getMessage() must return: ".concat(msgs[i]), tE
.getMessage(), msgs[i]);
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
}
@@ -102,11 +87,5 @@
ShortBufferException tE = new ShortBufferException(msg);
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
- try {
- throw tE;
- } catch (Exception e) {
- assertTrue(createErr(tE, e), tE.equals(e));
- }
}
-
}