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 2024/07/08 18:30:27 UTC

(commons-io) 02/13: Import JUnit class instead of using FQCN

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

commit 666f8ed402668dd9a6052019509700084e4a0e0e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jul 8 08:49:28 2024 -0400

    Import JUnit class instead of using FQCN
---
 .../io/input/ClassLoaderObjectInputStreamTest.java        | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/input/ClassLoaderObjectInputStreamTest.java b/src/test/java/org/apache/commons/io/input/ClassLoaderObjectInputStreamTest.java
index 84cb0cb92..210172f66 100644
--- a/src/test/java/org/apache/commons/io/input/ClassLoaderObjectInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/ClassLoaderObjectInputStreamTest.java
@@ -28,6 +28,7 @@ import java.io.ObjectOutputStream;
 import java.io.Serializable;
 
 import org.apache.commons.lang3.SerializationUtils;
+import org.junit.jupiter.api.Test;
 
 /**
  * Tests {@link ClassLoaderObjectInputStream}.
@@ -78,7 +79,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testExpected() throws Exception {
         final Boolean input = Boolean.FALSE;
         final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input));
@@ -88,7 +89,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testLong() throws Exception {
         final Long input = 123L;
         final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input));
@@ -98,7 +99,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testObject1() throws Exception {
         final TestFixture input = new TestFixture(123, null);
         final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input));
@@ -108,7 +109,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testObject2() throws Exception {
         final TestFixture input = new TestFixture(123, 0);
         final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input));
@@ -118,7 +119,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testPrimitiveLong() throws Exception {
         final long input = 12345L;
         final ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -132,7 +133,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testResolveProxyClass() throws Exception {
         final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(Boolean.FALSE));
         try (ClassLoaderObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) {
@@ -142,7 +143,7 @@ public class ClassLoaderObjectInputStreamTest {
         }
     }
 
-    @org.junit.jupiter.api.Test
+    @Test
     public void testResolveProxyClassWithMultipleInterfaces() throws Exception {
         final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(Boolean.FALSE));
         try (ClassLoaderObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) {