You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/03/14 15:00:24 UTC
svn commit: r753660 - in
/commons/proper/lang/trunk/src/test/org/apache/commons/lang: ./ builder/
exception/ math/ reflect/ text/ time/
Author: sebb
Date: Sat Mar 14 14:00:22 2009
New Revision: 753660
URL: http://svn.apache.org/viewvc?rev=753660&view=rev
Log:
Add missing @Override markers
Modified:
commons/proper/lang/trunk/src/test/org/apache/commons/lang/BooleanUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesPerformanceTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/LocaleUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/ObjectUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/RandomStringUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsIsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsStartsEndsWithTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/ValidateTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/CompareToBuilderTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/DefaultToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderAndEqualsBuilderTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/MultiLineToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/NoFieldNamesToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/SimpleToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/StandardToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringStyleTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/AbstractRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/DoubleRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FloatRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FractionTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/IntRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/LongRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberRangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/ConstructorUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/FieldUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/MethodUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/CompositeFormatTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrLookupTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrTokenizerTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsFragmentTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsRoundingTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/BooleanUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/BooleanUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/BooleanUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/BooleanUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -47,10 +47,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java Sat Mar 14 14:00:22 2009
@@ -47,10 +47,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetTest.java Sat Mar 14 14:00:22 2009
@@ -48,10 +48,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharSetUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -48,10 +48,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -50,10 +50,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -57,10 +57,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesPerformanceTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesPerformanceTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesPerformanceTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesPerformanceTest.java Sat Mar 14 14:00:22 2009
@@ -47,6 +47,7 @@
return suite;
}
+ @Override
public void setUp() {
if (stringWithUnicode == null) {
StringBuffer buf = new StringBuffer(STRING_LENGTH);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/EntitiesTest.java Sat Mar 14 14:00:22 2009
@@ -48,6 +48,7 @@
Entities entities;
+ @Override
public void setUp()
{
entities = new Entities();
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/LocaleUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/LocaleUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/LocaleUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/LocaleUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -75,6 +75,7 @@
return suite;
}
+ @Override
public void setUp() throws Exception {
super.setUp();
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/ObjectUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ObjectUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/ObjectUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/ObjectUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -52,10 +52,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/RandomStringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/RandomStringUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/RandomStringUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/RandomStringUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -49,12 +49,14 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
}
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
}
@@ -311,8 +313,8 @@
double sumSq = 0.0d;
double dev = 0.0d;
for (int i = 0; i < observed.length; i++) {
- dev = (double) (observed[i] - expected[i]);
- sumSq += dev * dev / (double) expected[i];
+ dev = (observed[i] - expected[i]);
+ sumSq += dev * dev / expected[i];
}
return sumSq;
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/SerializationUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -63,6 +63,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
@@ -73,6 +74,7 @@
iMap.put("BAR", iInteger);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
@@ -180,6 +182,7 @@
// forces an IOException when the ObjectOutputStream is created, to test not closing the stream
// in the finally block
OutputStream streamTest = new OutputStream() {
+ @Override
public void write(int arg0) throws IOException {
throw new IOException(SERIALIZE_IO_EXCEPTION_MESSAGE);
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java Sat Mar 14 14:00:22 2009
@@ -49,10 +49,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsIsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsIsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsIsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsIsTest.java Sat Mar 14 14:00:22 2009
@@ -44,10 +44,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsStartsEndsWithTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsStartsEndsWithTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsStartsEndsWithTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsStartsEndsWithTest.java Sat Mar 14 14:00:22 2009
@@ -48,10 +48,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java Sat Mar 14 14:00:22 2009
@@ -50,10 +50,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -107,10 +107,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java Sat Mar 14 14:00:22 2009
@@ -45,10 +45,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -188,10 +188,12 @@
return OS_NAME.startsWith(osNamePrefix) && OS_VERSION.startsWith(osVersionPrefix);
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/ValidateTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ValidateTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/ValidateTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/ValidateTest.java Sat Mar 14 14:00:22 2009
@@ -53,10 +53,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/CompareToBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/CompareToBuilderTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/CompareToBuilderTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/CompareToBuilderTest.java Sat Mar 14 14:00:22 2009
@@ -45,10 +45,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
@@ -60,6 +62,7 @@
public TestObject(int a) {
this.a = a;
}
+ @Override
public boolean equals(Object o) {
if (o == this) {
return true;
@@ -93,6 +96,7 @@
super(a);
this.b = b;
}
+ @Override
public boolean equals(Object o) {
if (o == this) {
return true;
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/DefaultToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/DefaultToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/DefaultToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/DefaultToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -51,11 +51,13 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java Sat Mar 14 14:00:22 2009
@@ -49,10 +49,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
@@ -66,6 +68,7 @@
public TestObject(int a) {
this.a = a;
}
+ @Override
public boolean equals(Object o) {
if (o == null) { return false; }
if (o == this) { return true; }
@@ -95,6 +98,7 @@
super(a);
this.b = b;
}
+ @Override
public boolean equals(Object o) {
if (o == null) { return false; }
if (o == this) { return true; }
@@ -893,6 +897,7 @@
this.a = a;
}
+ @Override
public boolean equals(Object o) {
if (o == this)
return true;
@@ -915,6 +920,7 @@
this.b = b;
}
+ @Override
public boolean equals(Object o) {
if (o == this)
return true;
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderAndEqualsBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderAndEqualsBuilderTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderAndEqualsBuilderTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderAndEqualsBuilderTest.java Sat Mar 14 14:00:22 2009
@@ -49,10 +49,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/MultiLineToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/MultiLineToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/MultiLineToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/MultiLineToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -52,11 +52,13 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
ToStringBuilder.setDefaultStyle(ToStringStyle.MULTI_LINE_STYLE);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/NoFieldNamesToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/NoFieldNamesToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/NoFieldNamesToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/NoFieldNamesToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -51,11 +51,13 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
ToStringBuilder.setDefaultStyle(ToStringStyle.NO_FIELD_NAMES_STYLE);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -34,11 +34,13 @@
private final Integer base = new Integer(5);
private final String baseStr = "Integer";
+ @Override
protected void setUp() throws Exception {
super.setUp();
ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/SimpleToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/SimpleToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/SimpleToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/SimpleToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -50,11 +50,13 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
ToStringBuilder.setDefaultStyle(ToStringStyle.SIMPLE_STYLE);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/StandardToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/StandardToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/StandardToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/StandardToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -66,11 +66,13 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
ToStringBuilder.setDefaultStyle(STYLE);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
ToStringBuilder.setDefaultStyle(STYLE);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringStyleTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringStyleTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringStyleTest.java Sat Mar 14 14:00:22 2009
@@ -43,6 +43,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -76,6 +76,7 @@
return new TestSuite(ExceptionUtilsTest.class);
}
+ @Override
public void setUp() {
withoutCause = createExceptionWithoutCause();
nested = new NestableException(withoutCause);
@@ -89,6 +90,7 @@
cyclicCause = new ExceptionWithCause(a);
}
+ @Override
protected void tearDown() throws Exception {
withoutCause = null;
nested = null;
@@ -579,6 +581,7 @@
setCause(cause);
}
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java Sat Mar 14 14:00:22 2009
@@ -54,6 +54,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp()
{
lineSeparator = System.getProperty("line.separator");
@@ -67,6 +68,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown()
{
lineSeparator = null;
@@ -661,6 +663,7 @@
/**
* @see Nestable#getCause()
*/
+ @Override
public Throwable getCause()
{
return cause;
@@ -784,6 +787,7 @@
/**
* @see Nestable#getCause()
*/
+ @Override
public Throwable getCause()
{
return cause;
@@ -849,6 +853,7 @@
* Returns the hard-coded string "ThrowableNestable exception" for this
* test.
*/
+ @Override
public String getMessage()
{
return "ThrowableNestable exception";
@@ -878,6 +883,7 @@
/**
* @see Nestable#getCause()
*/
+ @Override
public Throwable getCause()
{
return cause;
@@ -888,6 +894,7 @@
* Empty method to satisfy the implemented interface. Does nothing
* in this test.
*/
+ @Override
public void printStackTrace(PrintWriter out)
{
}
@@ -969,6 +976,7 @@
* For this test, returns "ThrowableNestable exception (" appended to the
* message of the cause specified in the constructor.
*/
+ @Override
public String getMessage()
{
return "ThrowableNestedNestable exception (" + cause.getMessage() + ")";
@@ -1000,6 +1008,7 @@
/**
* @see Nestable#getCause()
*/
+ @Override
public Throwable getCause()
{
return cause;
@@ -1010,6 +1019,7 @@
* For this test, writes the string
* "ThrowableNestedNestable stack trace place-holder" to the print writer.
*/
+ @Override
public void printStackTrace(PrintWriter out)
{
out.println("ThrowableNestedNestable stack trace place-holder");
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java Sat Mar 14 14:00:22 2009
@@ -44,6 +44,7 @@
/**
* Sets up instance variables required by this test case.
*/
+ @Override
public void setUp()
{
}
@@ -61,6 +62,7 @@
/**
* Tears down instance variables required by this test case.
*/
+ @Override
public void tearDown()
{
}
@@ -78,6 +80,7 @@
/**
* @see AbstractNestableTest#getNestable()
*/
+ @Override
public Nestable getNestable()
{
return new NestableError();
@@ -86,6 +89,7 @@
/**
* @see AbstractNestableTest#getNestable(Nestable)
*/
+ @Override
public Nestable getNestable(Nestable n)
{
return new NestableError((Throwable) n);
@@ -94,6 +98,7 @@
/**
* @see AbstractNestableTest#getNestable(String)
*/
+ @Override
public Nestable getNestable(String msg)
{
return new NestableError(msg);
@@ -102,6 +107,7 @@
/**
* @see AbstractNestableTest#getNestable(Throwable)
*/
+ @Override
public Nestable getNestable(Throwable t)
{
return new NestableError(t);
@@ -110,6 +116,7 @@
/**
* @see AbstractNestableTest#getNestable(String, Throwable)
*/
+ @Override
public Nestable getNestable(String msg, Throwable t)
{
return new NestableError(msg, t);
@@ -118,6 +125,7 @@
/**
* @see AbstractNestableTest#getNestable(String, Nestable)
*/
+ @Override
public Nestable getNestable(String msg, Nestable n)
{
return new NestableError(msg, (Throwable) n);
@@ -126,6 +134,7 @@
/**
* @see AbstractNestableTest#getTester1(Throwable)
*/
+ @Override
public Nestable getTester1(Throwable t)
{
return new NestableErrorTester1(t);
@@ -134,6 +143,7 @@
/**
* @see AbstractNestableTest#getTester1(Nestable)
*/
+ @Override
public Nestable getTester1(Nestable n)
{
return new NestableErrorTester1((Throwable) n);
@@ -142,6 +152,7 @@
/**
* @see AbstractNestableTest#getTester1(String, Throwable)
*/
+ @Override
public Nestable getTester1(String msg, Throwable t)
{
return new NestableErrorTester1(msg, t);
@@ -150,6 +161,7 @@
/**
* @see AbstractNestableTest#getTester1(String, Nestable)
*/
+ @Override
public Nestable getTester1(String msg, Nestable n)
{
return new NestableErrorTester1(msg, (Throwable) n);
@@ -158,6 +170,7 @@
/**
* @see AbstractNestableTest#getTester1Class()
*/
+ @Override
public Class getTester1Class()
{
return NestableErrorTester1.class;
@@ -166,6 +179,7 @@
/**
* @see AbstractNestableTest#getTester2(String, Throwable)
*/
+ @Override
public Nestable getTester2(String msg, Throwable t)
{
return new NestableErrorTester2(msg, t);
@@ -174,6 +188,7 @@
/**
* @see AbstractNestableTest#getTester2(String, Nestable)
*/
+ @Override
public Nestable getTester2(String msg, Nestable n)
{
return new NestableErrorTester2(msg, (Throwable) n);
@@ -182,6 +197,7 @@
/**
* @see AbstractNestableTest#getTester2Class()
*/
+ @Override
public Class getTester2Class()
{
return NestableErrorTester2.class;
@@ -190,6 +206,7 @@
/**
* @see AbstractNestableTest#getThrowable(String)
*/
+ @Override
public Throwable getThrowable(String msg)
{
return new EOFException(msg);
@@ -198,6 +215,7 @@
/**
* @see AbstractNestableTest#getThrowableClass()
*/
+ @Override
public Class getThrowableClass()
{
return EOFException.class;
@@ -206,6 +224,7 @@
/**
* @see AbstractNestableTest#getBaseThrowableClass()
*/
+ @Override
public Class getBaseThrowableClass()
{
return Error.class;
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java Sat Mar 14 14:00:22 2009
@@ -49,6 +49,7 @@
/**
* Sets up instance variables required by this test case.
*/
+ @Override
public void setUp()
{
}
@@ -66,6 +67,7 @@
/**
* Tears down instance variables required by this test case.
*/
+ @Override
public void tearDown()
{
}
@@ -83,6 +85,7 @@
/**
* @see AbstractNestableTest#getNestable()
*/
+ @Override
public Nestable getNestable()
{
return new NestableException();
@@ -91,6 +94,7 @@
/**
* @see AbstractNestableTest#getNestable(Nestable)
*/
+ @Override
public Nestable getNestable(Nestable n)
{
return new NestableException((Throwable) n);
@@ -99,6 +103,7 @@
/**
* @see AbstractNestableTest#getNestable(String)
*/
+ @Override
public Nestable getNestable(String msg)
{
return new NestableException(msg);
@@ -107,6 +112,7 @@
/**
* @see AbstractNestableTest#getNestable(Throwable)
*/
+ @Override
public Nestable getNestable(Throwable t)
{
return new NestableException(t);
@@ -115,6 +121,7 @@
/**
* @see AbstractNestableTest#getNestable(String, Throwable)
*/
+ @Override
public Nestable getNestable(String msg, Throwable t)
{
return new NestableException(msg, t);
@@ -123,6 +130,7 @@
/**
* @see AbstractNestableTest#getNestable(String, Nestable)
*/
+ @Override
public Nestable getNestable(String msg, Nestable n)
{
return new NestableException(msg, (Throwable) n);
@@ -131,6 +139,7 @@
/**
* @see AbstractNestableTest#getTester1(Throwable)
*/
+ @Override
public Nestable getTester1(Throwable t)
{
return new NestableExceptionTester1(t);
@@ -139,6 +148,7 @@
/**
* @see AbstractNestableTest#getTester1(Nestable)
*/
+ @Override
public Nestable getTester1(Nestable n)
{
return new NestableExceptionTester1((Throwable) n);
@@ -147,6 +157,7 @@
/**
* @see AbstractNestableTest#getTester1(String, Throwable)
*/
+ @Override
public Nestable getTester1(String msg, Throwable t)
{
return new NestableExceptionTester1(msg, t);
@@ -155,6 +166,7 @@
/**
* @see AbstractNestableTest#getTester1(String, Nestable)
*/
+ @Override
public Nestable getTester1(String msg, Nestable n)
{
return new NestableExceptionTester1(msg, (Throwable) n);
@@ -163,6 +175,7 @@
/**
* @see AbstractNestableTest#getTester1Class()
*/
+ @Override
public Class getTester1Class()
{
return NestableExceptionTester1.class;
@@ -171,6 +184,7 @@
/**
* @see AbstractNestableTest#getTester2(String, Throwable)
*/
+ @Override
public Nestable getTester2(String msg, Throwable t)
{
return new NestableExceptionTester2(msg, t);
@@ -179,6 +193,7 @@
/**
* @see AbstractNestableTest#getTester2(String, Nestable)
*/
+ @Override
public Nestable getTester2(String msg, Nestable n)
{
return new NestableExceptionTester2(msg, (Throwable) n);
@@ -187,6 +202,7 @@
/**
* @see AbstractNestableTest#getTester2Class()
*/
+ @Override
public Class getTester2Class()
{
return NestableExceptionTester2.class;
@@ -195,6 +211,7 @@
/**
* @see AbstractNestableTest#getThrowable(String)
*/
+ @Override
public Throwable getThrowable(String msg)
{
return new EOFException(msg);
@@ -203,6 +220,7 @@
/**
* @see AbstractNestableTest#getThrowableClass()
*/
+ @Override
public Class getThrowableClass()
{
return EOFException.class;
@@ -211,6 +229,7 @@
/**
* @see AbstractNestableTest#getBaseThrowableClass()
*/
+ @Override
public Class getBaseThrowableClass()
{
return Exception.class;
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java Sat Mar 14 14:00:22 2009
@@ -46,6 +46,7 @@
/**
* Sets up instance variables required by this test case.
*/
+ @Override
public void setUp()
{
}
@@ -63,6 +64,7 @@
/**
* Tears down instance variables required by this test case.
*/
+ @Override
public void tearDown()
{
}
@@ -80,6 +82,7 @@
/**
* @see AbstractNestableTest#getNestable()
*/
+ @Override
public Nestable getNestable()
{
return new NestableRuntimeException();
@@ -88,6 +91,7 @@
/**
* @see AbstractNestableTest#getNestable(Nestable)
*/
+ @Override
public Nestable getNestable(Nestable n)
{
return new NestableRuntimeException((Throwable) n);
@@ -96,6 +100,7 @@
/**
* @see AbstractNestableTest#getNestable(String)
*/
+ @Override
public Nestable getNestable(String msg)
{
return new NestableRuntimeException(msg);
@@ -104,6 +109,7 @@
/**
* @see AbstractNestableTest#getNestable(Throwable)
*/
+ @Override
public Nestable getNestable(Throwable t)
{
return new NestableRuntimeException(t);
@@ -112,6 +118,7 @@
/**
* @see AbstractNestableTest#getNestable(String, Throwable)
*/
+ @Override
public Nestable getNestable(String msg, Throwable t)
{
return new NestableRuntimeException(msg, t);
@@ -120,6 +127,7 @@
/**
* @see AbstractNestableTest#getNestable(String, Nestable)
*/
+ @Override
public Nestable getNestable(String msg, Nestable n)
{
return new NestableRuntimeException(msg, (Throwable) n);
@@ -128,6 +136,7 @@
/**
* @see AbstractNestableTest#getTester1(Throwable)
*/
+ @Override
public Nestable getTester1(Throwable t)
{
return new NestableRuntimeExceptionTester1(t);
@@ -136,6 +145,7 @@
/**
* @see AbstractNestableTest#getTester1(Nestable)
*/
+ @Override
public Nestable getTester1(Nestable n)
{
return new NestableRuntimeExceptionTester1((Throwable) n);
@@ -144,6 +154,7 @@
/**
* @see AbstractNestableTest#getTester1(String, Throwable)
*/
+ @Override
public Nestable getTester1(String msg, Throwable t)
{
return new NestableRuntimeExceptionTester1(msg, t);
@@ -152,6 +163,7 @@
/**
* @see AbstractNestableTest#getTester1(String, Nestable)
*/
+ @Override
public Nestable getTester1(String msg, Nestable n)
{
return new NestableRuntimeExceptionTester1(msg, (Throwable) n);
@@ -160,6 +172,7 @@
/**
* @see AbstractNestableTest#getTester1Class()
*/
+ @Override
public Class getTester1Class()
{
return NestableRuntimeExceptionTester1.class;
@@ -168,6 +181,7 @@
/**
* @see AbstractNestableTest#getTester2(String, Throwable)
*/
+ @Override
public Nestable getTester2(String msg, Throwable t)
{
return new NestableRuntimeExceptionTester2(msg, t);
@@ -176,6 +190,7 @@
/**
* @see AbstractNestableTest#getTester2(String, Nestable)
*/
+ @Override
public Nestable getTester2(String msg, Nestable n)
{
return new NestableRuntimeExceptionTester2(msg, (Throwable) n);
@@ -184,6 +199,7 @@
/**
* @see AbstractNestableTest#getTester2Class()
*/
+ @Override
public Class getTester2Class()
{
return NestableRuntimeExceptionTester2.class;
@@ -192,6 +208,7 @@
/**
* @see AbstractNestableTest#getThrowable(String)
*/
+ @Override
public Throwable getThrowable(String msg)
{
return new EOFException(msg);
@@ -200,6 +217,7 @@
/**
* @see AbstractNestableTest#getThrowableClass()
*/
+ @Override
public Class getThrowableClass()
{
return EOFException.class;
@@ -208,6 +226,7 @@
/**
* @see AbstractNestableTest#getBaseThrowableClass()
*/
+ @Override
public Class getBaseThrowableClass()
{
return RuntimeException.class;
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/AbstractRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/AbstractRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/AbstractRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/AbstractRangeTest.java Sat Mar 14 14:00:22 2009
@@ -54,15 +54,19 @@
protected Float float21;
private static class InnerNumber extends Number {
+ @Override
public double doubleValue() {
return 12d;
}
+ @Override
public float floatValue() {
return 12f;
}
+ @Override
public int intValue() {
return 12;
}
+ @Override
public long longValue() {
return 12L;
}
@@ -75,6 +79,7 @@
super(name);
}
+ @Override
public void setUp() {
five = new Integer(5);
ten = new Integer(10);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/DoubleRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/DoubleRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/DoubleRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/DoubleRangeTest.java Sat Mar 14 14:00:22 2009
@@ -39,15 +39,18 @@
return suite;
}
+ @Override
public void setUp() {
super.setUp();
tenToTwenty = new DoubleRange(double10, double20);
otherRange = new NumberRange(ten, twenty);
}
+ @Override
protected Range createRange(Integer integer1, Integer integer2) {
return new DoubleRange(integer1, integer2);
}
+ @Override
protected Range createRange(Integer integer) {
return new NumberRange(integer);
}
@@ -161,6 +164,7 @@
assertEquals(false, tenToTwenty.containsNumber(float21));
}
+ @Override
public void testToString() {
String str = tenToTwenty.toString();
assertEquals("Range[10.0,20.0]", str);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FloatRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FloatRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FloatRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FloatRangeTest.java Sat Mar 14 14:00:22 2009
@@ -39,15 +39,18 @@
return suite;
}
+ @Override
public void setUp() {
super.setUp();
tenToTwenty = new FloatRange(float10, float20);
otherRange = new NumberRange(ten, twenty);
}
+ @Override
protected Range createRange(Integer integer1, Integer integer2) {
return new FloatRange(integer1, integer2);
}
+ @Override
protected Range createRange(Integer integer) {
return new NumberRange(integer);
}
@@ -161,6 +164,7 @@
assertEquals(false, tenToTwenty.containsNumber(float21));
}
+ @Override
public void testToString() {
String str = tenToTwenty.toString();
assertEquals("Range[10.0,20.0]", str);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FractionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FractionTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FractionTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/FractionTest.java Sat Mar 14 14:00:22 2009
@@ -43,6 +43,7 @@
return suite;
}
+ @Override
public void setUp() {
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/IntRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/IntRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/IntRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/IntRangeTest.java Sat Mar 14 14:00:22 2009
@@ -43,15 +43,18 @@
return suite;
}
+ @Override
public void setUp() {
super.setUp();
tenToTwenty = new IntRange(ten, twenty);
otherRange = new NumberRange(ten, twenty);
}
+ @Override
protected Range createRange(Integer integer1, Integer integer2) {
return new IntRange(integer1, integer2);
}
+ @Override
protected Range createRange(Integer integer) {
return new NumberRange(integer);
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/LongRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/LongRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/LongRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/LongRangeTest.java Sat Mar 14 14:00:22 2009
@@ -41,15 +41,18 @@
return suite;
}
+ @Override
public void setUp() {
super.setUp();
tenToTwenty = new LongRange(long10, long20);
otherRange = new NumberRange(ten, twenty);
}
+ @Override
protected Range createRange(Integer integer1, Integer integer2) {
return new LongRange(integer1, integer2);
}
+ @Override
protected Range createRange(Integer integer) {
return new NumberRange(integer);
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberRangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberRangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/NumberRangeTest.java Sat Mar 14 14:00:22 2009
@@ -60,16 +60,19 @@
}
}
+ @Override
protected Range createRange(Integer integer) {
return new NumberRange(integer);
}
// --------------------------------------------------------------------------
+ @Override
protected Range createRange(Integer integer1, Integer integer2) {
return new NumberRange(integer1, integer2);
}
+ @Override
public void setUp() {
super.setUp();
tenToTwenty = new NumberRange(ten, twenty);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RandomUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -35,6 +35,7 @@
super(name);
}
+ @Override
public void setUp() {
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java Sat Mar 14 14:00:22 2009
@@ -42,6 +42,7 @@
this.max = max;
}
+ @Override
public boolean containsNumber(Number number) {
if (number.byteValue() >= min && number.byteValue() <= max) {
return true;
@@ -49,10 +50,12 @@
return false;
}
+ @Override
public Number getMaximumNumber() {
return new Byte(max);
}
+ @Override
public Number getMinimumNumber() {
return new Byte(min);
}
@@ -68,10 +71,12 @@
super(name);
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/ConstructorUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/ConstructorUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/ConstructorUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/ConstructorUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -61,6 +61,7 @@
toString = "(Object)";
}
+ @Override
public String toString() {
return toString;
}
@@ -88,6 +89,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
classCache.clear();
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/FieldUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/FieldUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/FieldUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/FieldUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -59,6 +59,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
StaticContainer.reset();
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/MethodUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/MethodUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/MethodUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/reflect/MethodUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -114,6 +114,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
testBean = new TestBean();
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/CompositeFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/CompositeFormatTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/CompositeFormatTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/CompositeFormatTest.java Sat Mar 14 14:00:22 2009
@@ -70,20 +70,24 @@
public void testCompositeFormat() {
Format parser = new Format() {
+ @Override
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
throw new UnsupportedOperationException("Not implemented");
}
+ @Override
public Object parseObject(String source, ParsePosition pos) {
return null; // do nothing
}
};
Format formatter = new Format() {
+ @Override
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
return null; // do nothing
}
+ @Override
public Object parseObject(String source, ParsePosition pos) {
throw new UnsupportedOperationException("Not implemented");
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/ExtendedMessageFormatTest.java Sat Mar 14 14:00:22 2009
@@ -68,12 +68,14 @@
super(name);
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
registry.put("lower", new LowerCaseFormatFactory());
registry.put("upper", new UpperCaseFormatFactory());
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
@@ -359,9 +361,11 @@
* {@link Format} implementation which converts to lower case.
*/
private static class LowerCaseFormat extends Format {
+ @Override
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
return toAppendTo.append(((String)obj).toLowerCase());
}
+ @Override
public Object parseObject(String source, ParsePosition pos) {throw new UnsupportedOperationException();}
}
@@ -369,9 +373,11 @@
* {@link Format} implementation which converts to upper case.
*/
private static class UpperCaseFormat extends Format {
+ @Override
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
return toAppendTo.append(((String)obj).toUpperCase());
}
+ @Override
public Object parseObject(String source, ParsePosition pos) {throw new UnsupportedOperationException();}
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java Sat Mar 14 14:00:22 2009
@@ -40,7 +40,7 @@
private static final String SEP = SystemUtils.LINE_SEPARATOR;
/** Test subclass of Object, with a toString method. */
- private static Object FOO = new Object() {
+ private static final Object FOO = new Object() {
@Override
public String toString() {
return "foo";
@@ -476,7 +476,7 @@
sb.appendln((Object) null);
assertEquals("" + SEP, sb.toString());
- sb.appendln((Object) FOO);
+ sb.appendln(FOO);
assertEquals(SEP + "foo" + SEP, sb.toString());
sb.appendln(new Integer(6));
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java Sat Mar 14 14:00:22 2009
@@ -1496,6 +1496,7 @@
}
static final StrMatcher A_NUMBER_MATCHER = new StrMatcher() {
+ @Override
public int isMatch(char[] buffer, int pos, int bufferStart, int bufferEnd) {
if (buffer[pos] == 'A') {
pos++;
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrLookupTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrLookupTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrLookupTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrLookupTest.java Sat Mar 14 14:00:22 2009
@@ -52,10 +52,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java Sat Mar 14 14:00:22 2009
@@ -57,6 +57,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
values = new HashMap();
@@ -64,6 +65,7 @@
values.put("target", "lazy dog");
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
values = null;
@@ -284,6 +286,7 @@
Map map = new HashMap();
map.put("name", "commons");
StrSubstitutor sub = new StrSubstitutor(map) {
+ @Override
protected String resolveVariable(String variableName, StrBuilder buf, int startPos, int endPos) {
assertEquals("name", variableName);
assertSame(builder, buf);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrTokenizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrTokenizerTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrTokenizerTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrTokenizerTest.java Sat Mar 14 14:00:22 2009
@@ -566,6 +566,7 @@
*/
public void testCloneNotSupportedException() {
Object notCloned = (new StrTokenizer() {
+ @Override
Object cloneReset() throws CloneNotSupportedException {
throw new CloneNotSupportedException("test");
}
@@ -812,6 +813,7 @@
//-----------------------------------------------------------------------
public void testTokenizeSubclassInputChange() {
StrTokenizer tkn = new StrTokenizer("a b c d e") {
+ @Override
protected List tokenize(char[] chars, int offset, int count) {
return super.tokenize("w x y z".toCharArray(), 2, 5);
}
@@ -823,6 +825,7 @@
//-----------------------------------------------------------------------
public void testTokenizeSubclassOutputChange() {
StrTokenizer tkn = new StrTokenizer("a b c") {
+ @Override
protected List tokenize(char[] chars, int offset, int count) {
List list = super.tokenize(chars, offset, count);
Collections.reverse(list);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsFragmentTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsFragmentTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsFragmentTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsFragmentTest.java Sat Mar 14 14:00:22 2009
@@ -44,7 +44,8 @@
private Date aDate;
private Calendar aCalendar;
- protected void setUp() {
+ @Override
+ protected void setUp() {
aCalendar = Calendar.getInstance();
aCalendar.set(2005, months, days, hours, minutes, seconds);
aCalendar.set(Calendar.MILLISECOND, millis);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsRoundingTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsRoundingTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsRoundingTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsRoundingTest.java Sat Mar 14 14:00:22 2009
@@ -64,7 +64,8 @@
Calendar januaryOneCalendar;
FastDateFormat fdf = DateFormatUtils.ISO_DATETIME_FORMAT;
- protected void setUp() throws Exception {
+ @Override
+ protected void setUp() throws Exception {
super.setUp();
dateTimeParser = new SimpleDateFormat("MMM dd, yyyy H:mm:ss.SSS", Locale.ENGLISH);
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java Sat Mar 14 14:00:22 2009
@@ -97,6 +97,7 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
@@ -150,6 +151,7 @@
TimeZone.setDefault(defaultZone);
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java?rev=753660&r1=753659&r2=753660&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java Sat Mar 14 14:00:22 2009
@@ -56,10 +56,12 @@
return suite;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
}
+ @Override
protected void tearDown() throws Exception {
super.tearDown();
}