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 2022/05/31 20:27:06 UTC

[commons-beanutils] 02/03: Format to use longer lines.

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 c9e7844fe16b2e48012a7038ded46e4e76a5ed3c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 25 07:47:21 2022 -0400

    Format to use longer lines.
---
 .../DefaultIntrospectionContextTestCase.java         | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java b/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java
index 4ad0c0a0..b324c931 100644
--- a/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/DefaultIntrospectionContextTestCase.java
@@ -25,9 +25,9 @@ import junit.framework.TestCase;
 
 /**
  * Test class for {@code IntrospectionContext}.
- *
  */
 public class DefaultIntrospectionContextTestCase extends TestCase {
+
     /** Constant for the name of a property. */
     private static final String PROP = "foo";
 
@@ -39,8 +39,7 @@ public class DefaultIntrospectionContextTestCase extends TestCase {
      */
     private static PropertyDescriptor createDescriptor(final String propName) {
         try {
-            return new PropertyDescriptor(propName,
-                    DefaultIntrospectionContextTestCase.class, null, null);
+            return new PropertyDescriptor(propName, DefaultIntrospectionContextTestCase.class, null, null);
         } catch (final IntrospectionException e) {
             throw new IllegalStateException("Unexpected exception: " + e);
         }
@@ -62,8 +61,7 @@ public class DefaultIntrospectionContextTestCase extends TestCase {
         final PropertyDescriptor desc = createDescriptor(PROP);
         context.addPropertyDescriptor(desc);
         assertTrue("Property not found", context.hasProperty(PROP));
-        assertSame("Wrong descriptor", desc,
-                context.getPropertyDescriptor(PROP));
+        assertSame("Wrong descriptor", desc, context.getPropertyDescriptor(PROP));
     }
 
     /**
@@ -97,12 +95,10 @@ public class DefaultIntrospectionContextTestCase extends TestCase {
         assertEquals("Wrong number of property names", count + 1, names.size());
         assertTrue("Property not found: " + PROP, names.contains(PROP));
         for (int i = 0; i < count; i++) {
-            assertTrue("Property not found: " + (PROP + i),
-                    names.contains(PROP + i));
+            assertTrue("Property not found: " + (PROP + i), names.contains(PROP + i));
         }
         final PropertyDescriptor[] addedDescs = context.getPropertyDescriptors();
-        assertEquals("Wrong number of added descriptors", count + 1,
-                addedDescs.length);
+        assertEquals("Wrong number of added descriptors", count + 1, addedDescs.length);
         for (final PropertyDescriptor pd : addedDescs) {
             assertTrue("Unexpected descriptor: " + pd, descSet.remove(pd));
         }
@@ -142,8 +138,7 @@ public class DefaultIntrospectionContextTestCase extends TestCase {
      * Tests a newly created instance.
      */
     public void testInit() {
-        assertEquals("Wrong current class", getClass(),
-                context.getTargetClass());
+        assertEquals("Wrong current class", getClass(), context.getTargetClass());
         assertTrue("Got property names", context.propertyNames().isEmpty());
     }
 
@@ -167,7 +162,6 @@ public class DefaultIntrospectionContextTestCase extends TestCase {
         context.addPropertyDescriptor(createDescriptor(PROP));
         context.removePropertyDescriptor(PROP);
         assertTrue("Got property names", context.propertyNames().isEmpty());
-        assertEquals("Got descriptors", 0,
-                context.getPropertyDescriptors().length);
+        assertEquals("Got descriptors", 0, context.getPropertyDescriptors().length);
     }
 }