You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/03 14:09:49 UTC
(commons-digester) 01/02: Normalize test method names
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-digester.git
commit 69aa2f7ef36c5bf6b5f9afeeb52158139b9c8a14
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 3 10:02:50 2023 -0400
Normalize test method names
---
.../apache/commons/digester3/AsyncReaderTestCase.java | 12 ++++++------
.../digester3/BeanPropertySetterRuleTestCase.java | 2 +-
.../apache/commons/digester3/Digester153TestCase.java | 14 +++++++-------
.../apache/commons/digester3/Digester162TestCase.java | 2 +-
.../org/apache/commons/digester3/ErrorHandlerTest.java | 6 +++---
.../digester3/binder/BinderClassLoaderTestCase.java | 16 ++++++++--------
.../commons/digester3/binder/DigesterLoaderTestCase.java | 6 +++---
.../xmlrules/BeanPropertySetterRuleTestCase.java | 2 +-
.../digester3/xmlrules/SetNamespaceURITestCase.java | 2 +-
9 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/AsyncReaderTestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/AsyncReaderTestCase.java
index dd9211cf..87db809e 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/AsyncReaderTestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/AsyncReaderTestCase.java
@@ -64,7 +64,7 @@ public final class AsyncReaderTestCase
}
@Test
- public void parseFromFile()
+ public void testParseFromFile()
throws Exception
{
final Future<Employee> future = digester.asyncParse( new File( getProperty( "user.dir" ),
@@ -73,7 +73,7 @@ public final class AsyncReaderTestCase
}
@Test
- public void parseFromClasspathURL()
+ public void testParseFromClasspathURL()
throws Exception
{
final Future<Employee> future = digester.asyncParse( getClass().getResource( "Test9.xml" ) );
@@ -81,7 +81,7 @@ public final class AsyncReaderTestCase
}
@Test
- public void parseFromInputStream()
+ public void testParseFromInputStream()
throws Exception
{
final Future<Employee> future = digester.asyncParse( getClass().getResource( "Test9.xml" ).openStream() );
@@ -89,7 +89,7 @@ public final class AsyncReaderTestCase
}
@Test
- public void parseFromInputSource()
+ public void testParseFromInputSource()
throws Exception
{
final Future<Employee> future =
@@ -98,7 +98,7 @@ public final class AsyncReaderTestCase
}
@Test
- public void parseFromReader()
+ public void testParseFromReader()
throws Exception
{
final Future<Employee> future =
@@ -107,7 +107,7 @@ public final class AsyncReaderTestCase
}
@Test
- public void parseFromUri()
+ public void testParseFromUri()
throws Exception
{
final Future<Employee> future = digester.asyncParse( getClass().getResource( "Test9.xml" ).toExternalForm() );
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/BeanPropertySetterRuleTestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/BeanPropertySetterRuleTestCase.java
index 790970f8..738e28a3 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/BeanPropertySetterRuleTestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/BeanPropertySetterRuleTestCase.java
@@ -265,7 +265,7 @@ public class BeanPropertySetterRuleTestCase
}
@Test
- public void extractPropertyNameFromAttribute() throws Exception
+ public void testExtractPropertyNameFromAttribute() throws Exception
{
final Employee expected = new Employee( "John", "Doe" );
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester153TestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
index 8d08a4dc..c0bda03d 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
@@ -38,7 +38,7 @@ public final class Digester153TestCase
{
@Test
- public void basicConstructor()
+ public void testBasicConstructor()
throws Exception
{
final ObjectCreateRule createRule = new ObjectCreateRule( TestBean.class );
@@ -62,7 +62,7 @@ public final class Digester153TestCase
}
@Test
- public void constructorWithAttributeAndElement()
+ public void testConstructorWithAttributeAndElement()
throws Exception
{
final ObjectCreateRule createRule = new ObjectCreateRule( TestBean.class );
@@ -89,7 +89,7 @@ public final class Digester153TestCase
}
@Test
- public void basicConstructorViaBinder()
+ public void testBasicConstructorViaBinder()
throws Exception
{
succesfullConstructor( new AbstractRulesModule()
@@ -110,7 +110,7 @@ public final class Digester153TestCase
}
@Test
- public void basicConstructorViaAnnotations()
+ public void testBasicConstructorViaAnnotations()
throws Exception
{
succesfullConstructor( new FromAnnotationsRuleModule()
@@ -126,7 +126,7 @@ public final class Digester153TestCase
}
@Test
- public void basicConstructorViaXML()
+ public void testBasicConstructorViaXML()
throws Exception
{
succesfullConstructor( new FromXmlRulesModule()
@@ -153,7 +153,7 @@ public final class Digester153TestCase
}
@Test
- public void basicConstructorWithValuesNotFound()
+ public void testBasicConstructorWithValuesNotFound()
throws Exception
{
final ObjectCreateRule createRule = new ObjectCreateRule( TestBean.class );
@@ -184,7 +184,7 @@ public final class Digester153TestCase
}
@Test
- public void constructorWithClassDefinedInAttribute()
+ public void testConstructorWithClassDefinedInAttribute()
throws Exception
{
final ObjectCreateRule createRule = new ObjectCreateRule( null, "type" );
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester162TestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester162TestCase.java
index 15e6aa41..01658f7b 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester162TestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/Digester162TestCase.java
@@ -30,7 +30,7 @@ public final class Digester162TestCase
{
@Test
- public void allowCreateObjectsWichTypesAreSpecifiedInAttributeNameOnly()
+ public void testAllowCreateObjectsWichTypesAreSpecifiedInAttributeNameOnly()
throws Exception
{
final Digester digester = newLoader( new AbstractRulesModule()
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/ErrorHandlerTest.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/ErrorHandlerTest.java
index 543d5f96..d7a71e4f 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/ErrorHandlerTest.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/ErrorHandlerTest.java
@@ -36,7 +36,7 @@ public class ErrorHandlerTest
{
@Test
- public void noCustomErrorHandler()
+ public void testNoCustomErrorHandler()
{
try
@@ -64,7 +64,7 @@ public class ErrorHandlerTest
}
@Test
- public void customErrorHandlerWithStack()
+ public void testCustomErrorHandlerWithStack()
{
final ErrorHandler customErrorHandler = new ErrorHandler()
@@ -119,7 +119,7 @@ public class ErrorHandlerTest
}
@Test
- public void customErrorHandler()
+ public void testCustomErrorHandler()
{
final ErrorHandler customErrorHandler = new ErrorHandler()
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java
index 7c0fd0e2..3685d8b2 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java
@@ -52,56 +52,56 @@ public final class BinderClassLoaderTestCase
private final BinderClassLoader classLoader = createBinderClassLoader( new ExtendedClassLoader() );
@Test
- public void loadBoolean()
+ public void testLoadBoolean()
throws Exception
{
typeFound( "boolean", boolean.class );
}
@Test
- public void loadByte()
+ public void testLoadByte()
throws Exception
{
typeFound( "byte", byte.class );
}
@Test
- public void loadShort()
+ public void testLoadShort()
throws Exception
{
typeFound( "short", short.class );
}
@Test
- public void loadInt()
+ public void testLoadInt()
throws Exception
{
typeFound( "int", int.class );
}
@Test
- public void loadChar()
+ public void testLoadChar()
throws Exception
{
typeFound( "char", char.class );
}
@Test
- public void loadLong()
+ public void testLoadLong()
throws Exception
{
typeFound( "long", long.class );
}
@Test
- public void loadFloat()
+ public void testLoadFloat()
throws Exception
{
typeFound( "float", float.class );
}
@Test
- public void loadDouble()
+ public void testLoadDouble()
throws Exception
{
typeFound( "double", double.class );
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/DigesterLoaderTestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/DigesterLoaderTestCase.java
index 354bf743..e028088a 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/DigesterLoaderTestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/binder/DigesterLoaderTestCase.java
@@ -36,7 +36,7 @@ public final class DigesterLoaderTestCase
* DIGESTER-151
*/
@Test
- public void digester151()
+ public void testDigester151()
{
final ErrorHandler expected = new ErrorHandler()
{
@@ -81,7 +81,7 @@ public final class DigesterLoaderTestCase
}
@Test
- public void digeser152()
+ public void testDigeser152()
{
final Locator expected = new Locator()
{
@@ -132,7 +132,7 @@ public final class DigesterLoaderTestCase
}
@Test
- public void digester155()
+ public void testDigester155()
{
final ClassLoader expected = getClass().getClassLoader();
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/BeanPropertySetterRuleTestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/BeanPropertySetterRuleTestCase.java
index aa268b23..1b60406f 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/BeanPropertySetterRuleTestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/BeanPropertySetterRuleTestCase.java
@@ -29,7 +29,7 @@ public final class BeanPropertySetterRuleTestCase
{
@Test
- public void extractPropertyNameFromAttribute() throws Exception
+ public void testExtractPropertyNameFromAttribute() throws Exception
{
final Employee expected = new Employee( "John", "Doe" );
diff --git a/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/SetNamespaceURITestCase.java b/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/SetNamespaceURITestCase.java
index c0ca69c9..652ed8a2 100644
--- a/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/SetNamespaceURITestCase.java
+++ b/commons-digester3-core/src/test/java/org/apache/commons/digester3/xmlrules/SetNamespaceURITestCase.java
@@ -34,7 +34,7 @@ public final class SetNamespaceURITestCase
{
@Test
- public void atomWithNamespaceParse()
+ public void testAtomWithNamespaceParse()
throws Exception
{
// Drive commons-beanutils how to convert dates