[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [commons-beanutils] 01/03: Sort members.
From:       ggregory () apache ! org
Date:       2022-05-31 20:27:05
Message-ID: 20220531202705.115FE440013 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]

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-beanutils.git

commit 82b03d09d7525d851f20d8949c775012bde95297
Author: Gary Gregory <garydgregory@gmail.com>
AuthorDate: Wed May 25 07:45:35 2022 -0400

    Sort members.
---
 .../DefaultIntrospectionContextTestCase.java       | 42 +++++++++++-----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java \
b/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java
 index 86dc1977..4ad0c0a0 100644
--- a/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java
                
+++ b/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java
 @@ -31,15 +31,6 @@ public class DefaultIntrospectionContextTestCase extends TestCase \
{  /** Constant for the name of a property. */
     private static final String PROP = "foo";
 
-    /** The context to be tested. */
-    private DefaultIntrospectionContext context;
-
-    @Override
-    protected void setUp() throws Exception {
-        super.setUp();
-        context = new DefaultIntrospectionContext(getClass());
-    }
-
     /**
      * Creates a property descriptor object for a property with the given name.
      *
@@ -55,13 +46,13 @@ public class DefaultIntrospectionContextTestCase extends TestCase \
{  }
     }
 
-    /**
-     * Tests a newly created instance.
-     */
-    public void testInit() {
-        assertEquals("Wrong current class", getClass(),
-                context.getTargetClass());
-        assertTrue("Got property names", context.propertyNames().isEmpty());
+    /** The context to be tested. */
+    private DefaultIntrospectionContext context;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+        context = new DefaultIntrospectionContext(getClass());
     }
 
     /**
@@ -129,6 +120,15 @@ public class DefaultIntrospectionContextTestCase extends \
TestCase {  }
     }
 
+    /**
+     * Tests getPropertyDescriptor() if the property name is unknown.
+     */
+    public void testGetPropertyDescriptorUnknown() {
+        assertNull("Got a property (1)", context.getPropertyDescriptor(PROP));
+        context.addPropertyDescriptor(createDescriptor(PROP));
+        assertNull("Got a property (2)", context.getPropertyDescriptor("other"));
+    }
+
     /**
      * Tests hasProperty() if the expected result is false.
      */
@@ -139,12 +139,12 @@ public class DefaultIntrospectionContextTestCase extends \
TestCase {  }
 
     /**
-     * Tests getPropertyDescriptor() if the property name is unknown.
+     * Tests a newly created instance.
      */
-    public void testGetPropertyDescriptorUnknown() {
-        assertNull("Got a property (1)", context.getPropertyDescriptor(PROP));
-        context.addPropertyDescriptor(createDescriptor(PROP));
-        assertNull("Got a property (2)", context.getPropertyDescriptor("other"));
+    public void testInit() {
+        assertEquals("Wrong current class", getClass(),
+                context.getTargetClass());
+        assertTrue("Got property names", context.propertyNames().isEmpty());
     }
 
     /**


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic