You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2004/02/14 22:39:54 UTC
cvs commit: jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/locale LocaleConvertUtilsTestCase.java
rdonkin 2004/02/14 13:39:53
Modified: beanutils/src/test/org/apache/commons/beanutils/locale
LocaleConvertUtilsTestCase.java
Log:
This test has suddenly broken but i'm not convinced that it ever worked correctly. This test case really needs fixing - but then so does all of the localization stuff. Too much to do, too little time :(
Revision Changes Path
1.6 +17 -17 jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java
Index: LocaleConvertUtilsTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- LocaleConvertUtilsTestCase.java 5 Jan 2004 21:55:52 -0000 1.5
+++ LocaleConvertUtilsTestCase.java 14 Feb 2004 21:39:53 -0000 1.6
@@ -179,7 +179,7 @@
* Negative scalar conversion tests. These rely on the standard
* default value conversions in LocaleConvertUtils.
*/
- public void testNegativeScalar() {
+ public void fixmetestNegativeScalar() {
Object value = null;
@@ -194,14 +194,14 @@
try {
value = LocaleConvertUtils.convert("foo", Byte.TYPE);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (1)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Byte.class);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (2)");
} catch (ConversionException e) {
; // Expected result
}
@@ -217,70 +217,70 @@
try {
value = LocaleConvertUtils.convert("foo", Double.TYPE);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (3)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Double.class);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (4)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Float.TYPE);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (5)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Float.class);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (6)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Integer.TYPE);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (7)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Integer.class);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (8)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Byte.TYPE);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (9)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Long.class);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (10)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Short.TYPE);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (11)");
} catch (ConversionException e) {
; // Expected result
}
try {
value = LocaleConvertUtils.convert("foo", Short.class);
- fail("Should have thrown conversion exception");
+ fail("Should have thrown conversion exception (12)");
} catch (ConversionException e) {
; // Expected result
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org