commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [commons-lang] branch master updated: Sort members.
Date Wed, 01 Jan 2020 03:32:36 GMT
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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new e15a2db  Sort members.
e15a2db is described below

commit e15a2db16717b621dee4659a38b38ddd22056079
Author: Gary Gregory <garydgregory@gmail.com>
AuthorDate: Tue Dec 31 22:32:31 2019 -0500

    Sort members.
    
    Drop @author tag.
---
 .../org/apache/commons/lang3/ArchUtilsTest.java    | 132 ++++++++++-----------
 1 file changed, 65 insertions(+), 67 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/ArchUtilsTest.java b/src/test/java/org/apache/commons/lang3/ArchUtilsTest.java
index ead1183..c1d2a90 100644
--- a/src/test/java/org/apache/commons/lang3/ArchUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/ArchUtilsTest.java
@@ -28,17 +28,78 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals;
 
 /**
  * Test class for {@link ArchUtils}.
- *
- * @author Tomschi
  */
 public class ArchUtilsTest {
 
-    private static final String X86 = "x86";
-    private static final String X86_64 = "x86_64";
     private static final String IA64 = "ia64";
     private static final String IA64_32 = "ia64_32";
     private static final String PPC = "ppc";
     private static final String PPC64 = "ppc64";
+    private static final String X86 = "x86";
+    private static final String X86_64 = "x86_64";
+
+    private void assertEqualsArchNotNull(final Processor.Arch arch, final Processor processor)
{
+        assertNotNull(arch);
+        assertNotNull(processor);
+        assertEquals(arch, processor.getArch());
+    }
+
+    private void assertEqualsTypeNotNull(final Processor.Type type, final Processor processor)
{
+        assertNotNull(type);
+        assertNotNull(processor);
+        assertEquals(type, processor.getType());
+    }
+
+    private void assertNotEqualsArchNotNull(final Processor.Arch arch, final Processor processor)
{
+        assertNotNull(arch);
+        assertNotNull(processor);
+        assertNotEquals(arch, processor.getArch());
+    }
+
+    private void assertNotEqualsTypeNotNull(final Processor.Type type, final Processor processor)
{
+        assertNotNull(type);
+        assertNotNull(processor);
+        assertNotEquals(type, processor.getType());
+    }
+
+    @Test
+    public void testArch() {
+        Processor processor = ArchUtils.getProcessor(X86);
+        assertEqualsTypeNotNull(Processor.Type.X86, processor);
+        assertTrue(processor.isX86());
+        assertNotEqualsTypeNotNull(Processor.Type.PPC, processor);
+        assertFalse(processor.isPPC());
+
+        processor = ArchUtils.getProcessor(X86_64);
+        assertEqualsTypeNotNull(Processor.Type.X86, processor);
+        assertTrue(processor.isX86());
+
+        processor = ArchUtils.getProcessor(IA64_32);
+        assertEqualsTypeNotNull(Processor.Type.IA_64, processor);
+        assertTrue(processor.isIA64());
+
+        processor = ArchUtils.getProcessor(IA64);
+        assertEqualsTypeNotNull(Processor.Type.IA_64, processor);
+        assertTrue(processor.isIA64());
+        assertNotEqualsTypeNotNull(Processor.Type.X86, processor);
+        assertFalse(processor.isX86());
+
+        processor = ArchUtils.getProcessor(PPC);
+        assertEqualsTypeNotNull(Processor.Type.PPC, processor);
+        assertTrue(processor.isPPC());
+        assertNotEqualsTypeNotNull(Processor.Type.IA_64, processor);
+        assertFalse(processor.isIA64());
+
+        processor = ArchUtils.getProcessor(PPC64);
+        assertEqualsTypeNotNull(Processor.Type.PPC, processor);
+        assertTrue(processor.isPPC());
+    }
+
+    @Test
+    public void testGetProcessor() {
+        assertNotNull(ArchUtils.getProcessor(X86));
+        assertNull(ArchUtils.getProcessor("NA"));
+    }
 
     @Test
     public void testIs32BitJVM() {
@@ -94,67 +155,4 @@ public class ArchUtilsTest {
         assertFalse(processor.is64Bit());
     }
 
-    @Test
-    public void testArch() {
-        Processor processor = ArchUtils.getProcessor(X86);
-        assertEqualsTypeNotNull(Processor.Type.X86, processor);
-        assertTrue(processor.isX86());
-        assertNotEqualsTypeNotNull(Processor.Type.PPC, processor);
-        assertFalse(processor.isPPC());
-
-        processor = ArchUtils.getProcessor(X86_64);
-        assertEqualsTypeNotNull(Processor.Type.X86, processor);
-        assertTrue(processor.isX86());
-
-        processor = ArchUtils.getProcessor(IA64_32);
-        assertEqualsTypeNotNull(Processor.Type.IA_64, processor);
-        assertTrue(processor.isIA64());
-
-        processor = ArchUtils.getProcessor(IA64);
-        assertEqualsTypeNotNull(Processor.Type.IA_64, processor);
-        assertTrue(processor.isIA64());
-        assertNotEqualsTypeNotNull(Processor.Type.X86, processor);
-        assertFalse(processor.isX86());
-
-        processor = ArchUtils.getProcessor(PPC);
-        assertEqualsTypeNotNull(Processor.Type.PPC, processor);
-        assertTrue(processor.isPPC());
-        assertNotEqualsTypeNotNull(Processor.Type.IA_64, processor);
-        assertFalse(processor.isIA64());
-
-        processor = ArchUtils.getProcessor(PPC64);
-        assertEqualsTypeNotNull(Processor.Type.PPC, processor);
-        assertTrue(processor.isPPC());
-    }
-
-    @Test
-    public void testGetProcessor() {
-        assertNotNull(ArchUtils.getProcessor(X86));
-        assertNull(ArchUtils.getProcessor("NA"));
-    }
-
-    private void assertEqualsArchNotNull(final Processor.Arch arch, final Processor processor)
{
-        assertNotNull(arch);
-        assertNotNull(processor);
-        assertEquals(arch, processor.getArch());
-    }
-
-    private void assertNotEqualsArchNotNull(final Processor.Arch arch, final Processor processor)
{
-        assertNotNull(arch);
-        assertNotNull(processor);
-        assertNotEquals(arch, processor.getArch());
-    }
-
-    private void assertEqualsTypeNotNull(final Processor.Type type, final Processor processor)
{
-        assertNotNull(type);
-        assertNotNull(processor);
-        assertEquals(type, processor.getType());
-    }
-
-    private void assertNotEqualsTypeNotNull(final Processor.Type type, final Processor processor)
{
-        assertNotNull(type);
-        assertNotNull(processor);
-        assertNotEquals(type, processor.getType());
-    }
-
 }


Mime
View raw message