You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2013/10/30 21:21:13 UTC
svn commit: r1537277 -
/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java
Author: oheger
Date: Wed Oct 30 20:21:12 2013
New Revision: 1537277
URL: http://svn.apache.org/r1537277
Log:
Fixed a variable not used warning.
Modified:
commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java
Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java?rev=1537277&r1=1537276&r2=1537277&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java (original)
+++ commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/locale/LocaleConvertUtilsTestCase.java Wed Oct 30 20:21:12 2013
@@ -25,9 +25,10 @@ import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
-import junit.framework.TestCase;
import junit.framework.Test;
+import junit.framework.TestCase;
import junit.framework.TestSuite;
+
import org.apache.commons.beanutils.ConversionException;
@@ -134,8 +135,6 @@ public class LocaleConvertUtilsTestCase
*/
public void testNegativeScalar() {
- Object value = null;
-
/* fixme Boolean converters not implemented at this point
value = LocaleConvertUtils.convert("foo", Boolean.TYPE);
...
@@ -146,14 +145,14 @@ public class LocaleConvertUtilsTestCase
try {
- value = LocaleConvertUtils.convert("foo", Byte.TYPE);
+ LocaleConvertUtils.convert("foo", Byte.TYPE);
fail("Should have thrown conversion exception (1)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Byte.class);
+ LocaleConvertUtils.convert("foo", Byte.class);
fail("Should have thrown conversion exception (2)");
} catch (ConversionException e) {
// Expected result
@@ -169,70 +168,70 @@ public class LocaleConvertUtilsTestCase
*/
try {
- value = LocaleConvertUtils.convert("foo", Double.TYPE);
+ LocaleConvertUtils.convert("foo", Double.TYPE);
fail("Should have thrown conversion exception (3)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Double.class);
+ LocaleConvertUtils.convert("foo", Double.class);
fail("Should have thrown conversion exception (4)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Float.TYPE);
+ LocaleConvertUtils.convert("foo", Float.TYPE);
fail("Should have thrown conversion exception (5)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Float.class);
+ LocaleConvertUtils.convert("foo", Float.class);
fail("Should have thrown conversion exception (6)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Integer.TYPE);
+ LocaleConvertUtils.convert("foo", Integer.TYPE);
fail("Should have thrown conversion exception (7)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Integer.class);
+ LocaleConvertUtils.convert("foo", Integer.class);
fail("Should have thrown conversion exception (8)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Byte.TYPE);
+ LocaleConvertUtils.convert("foo", Byte.TYPE);
fail("Should have thrown conversion exception (9)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Long.class);
+ LocaleConvertUtils.convert("foo", Long.class);
fail("Should have thrown conversion exception (10)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Short.TYPE);
+ LocaleConvertUtils.convert("foo", Short.TYPE);
fail("Should have thrown conversion exception (11)");
} catch (ConversionException e) {
// Expected result
}
try {
- value = LocaleConvertUtils.convert("foo", Short.class);
+ LocaleConvertUtils.convert("foo", Short.class);
fail("Should have thrown conversion exception (12)");
} catch (ConversionException e) {
// Expected result