This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 42113838e Test modernization, clean up utility classes.
42113838e is described below

commit 42113838e7ee626c23d8c7fa2a19e2cfbd3dec54
Author: James Bognar <[email protected]>
AuthorDate: Tue Aug 26 09:05:43 2025 -0400

    Test modernization, clean up utility classes.
---
 .../java/org/apache/juneau/AssertionPredicate.java     | 18 ------------------
 .../test/java/org/apache/juneau/BasicBeans_Test.java   |  2 +-
 .../test/java/org/apache/juneau/BeanConfig_Test.java   |  2 --
 .../src/test/java/org/apache/juneau/TestUtils.java     |  4 ----
 .../org/apache/juneau/internal/ObjectUtilsTest.java    | 18 ------------------
 5 files changed, 1 insertion(+), 43 deletions(-)

diff --git 
a/juneau-utest/src/test/java/org/apache/juneau/AssertionPredicate.java 
b/juneau-utest/src/test/java/org/apache/juneau/AssertionPredicate.java
deleted file mode 100644
index 52a8dfcfc..000000000
--- a/juneau-utest/src/test/java/org/apache/juneau/AssertionPredicate.java
+++ /dev/null
@@ -1,18 +0,0 @@
-// 
***************************************************************************************************************************
-// * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license agreements.  See the NOTICE file *
-// * distributed with this work for additional information regarding copyright 
ownership.  The ASF licenses this file        *
-// * to you under the Apache License, Version 2.0 (the "License"); you may not 
use this file except in compliance            *
-// * with the License.  You may obtain a copy of the License at                
                                              *
-// *                                                                           
                                              *
-// *  http://www.apache.org/licenses/LICENSE-2.0                               
                                              *
-// *                                                                           
                                              *
-// * Unless required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an  *
-// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.  See the License for the        *
-// * specific language governing permissions and limitations under the 
License.                                              *
-// 
***************************************************************************************************************************
-package org.apache.juneau;
-
-public interface AssertionPredicate<T> {
-
-       public void test(T value);
-}
diff --git a/juneau-utest/src/test/java/org/apache/juneau/BasicBeans_Test.java 
b/juneau-utest/src/test/java/org/apache/juneau/BasicBeans_Test.java
index 7f75afcf8..1ab373776 100644
--- a/juneau-utest/src/test/java/org/apache/juneau/BasicBeans_Test.java
+++ b/juneau-utest/src/test/java/org/apache/juneau/BasicBeans_Test.java
@@ -93,7 +93,7 @@ class BasicBeans_Test extends SimpleTestBase {
        @Test void b01_beanWithDynaProperty() throws Exception {
                assertJson(B.create(), "{a:1}");
 
-               B b = JsonParser.DEFAULT.parse("{a:1}", B.class);
+               var b = JsonParser.DEFAULT.parse("{a:1}", B.class);
                assertJson(b, "{a:1}");
        }
 }
\ No newline at end of file
diff --git a/juneau-utest/src/test/java/org/apache/juneau/BeanConfig_Test.java 
b/juneau-utest/src/test/java/org/apache/juneau/BeanConfig_Test.java
index f09f326ed..8dcd85340 100755
--- a/juneau-utest/src/test/java/org/apache/juneau/BeanConfig_Test.java
+++ b/juneau-utest/src/test/java/org/apache/juneau/BeanConfig_Test.java
@@ -415,11 +415,9 @@ class BeanConfig_Test extends SimpleTestBase {
 
        public interface A {
                String getA();
-
                void setA(String a);
 
                int getB();
-
                void setB(int b);
        }
 
diff --git a/juneau-utest/src/test/java/org/apache/juneau/TestUtils.java 
b/juneau-utest/src/test/java/org/apache/juneau/TestUtils.java
index ebbe5ac89..1bbc837a8 100644
--- a/juneau-utest/src/test/java/org/apache/juneau/TestUtils.java
+++ b/juneau-utest/src/test/java/org/apache/juneau/TestUtils.java
@@ -381,10 +381,6 @@ public class TestUtils extends Utils {
                assertEquals(expected, r(value).replaceAll("\\r?\\n", "|"));
        }
 
-       public static <T> void assertTests(T value, 
AssertionPredicate<T>...tests) {
-               Stream.of(tests).forEach(x -> x.test(value));
-       }
-
        private static final ThreadLocal<TimeZone> SYSTEM_TIME_ZONE = new 
ThreadLocal<>();
        public static final ThreadLocal<Locale> SYSTEM_LOCALE = new 
ThreadLocal<>();
 
diff --git 
a/juneau-utest/src/test/java/org/apache/juneau/internal/ObjectUtilsTest.java 
b/juneau-utest/src/test/java/org/apache/juneau/internal/ObjectUtilsTest.java
deleted file mode 100644
index 5a6b24f6b..000000000
--- a/juneau-utest/src/test/java/org/apache/juneau/internal/ObjectUtilsTest.java
+++ /dev/null
@@ -1,18 +0,0 @@
-// 
***************************************************************************************************************************
-// * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license agreements.  See the NOTICE file *
-// * distributed with this work for additional information regarding copyright 
ownership.  The ASF licenses this file        *
-// * to you under the Apache License, Version 2.0 (the "License"); you may not 
use this file except in compliance            *
-// * with the License.  You may obtain a copy of the License at                
                                              *
-// *                                                                           
                                              *
-// *  http://www.apache.org/licenses/LICENSE-2.0                               
                                              *
-// *                                                                           
                                              *
-// * Unless required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an  *
-// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.  See the License for the        *
-// * specific language governing permissions and limitations under the 
License.                                              *
-// 
***************************************************************************************************************************
-package org.apache.juneau.internal;
-
-import org.apache.juneau.*;
-
-class ObjectUtilsTest extends SimpleTestBase {
-}
\ No newline at end of file

Reply via email to