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

suiliangliang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury.git


The following commit(s) were added to refs/heads/main by this push:
     new d197e641 chore(java): move tests to meta/reflect pkg (#1592)
d197e641 is described below

commit d197e64130f7ab8f6655725ae06934ed644361c6
Author: Shawn Yang <[email protected]>
AuthorDate: Mon Apr 29 00:21:05 2024 +0800

    chore(java): move tests to meta/reflect pkg (#1592)
    
    ## What does this PR do?
    
    move tests to meta/reflect pkg
    
    ## Related issues
    
    #1583
    #1578
    
    ## Does this PR introduce any user-facing change?
    
    <!--
    If any user-facing interface changes, please [open an
    issue](https://github.com/apache/incubator-fury/issues/new/choose)
    describing the need to do so and update the document if necessary.
    -->
    
    - [ ] Does this PR introduce any public API change?
    - [ ] Does this PR introduce any binary protocol compatibility change?
    
    
    ## Benchmark
    
    <!--
    When the PR has an impact on performance (if you don't know whether the
    PR will have an impact on performance, you can submit the PR first, and
    if it will have impact on performance, the code reviewer will explain
    it), be sure to attach a benchmark data here.
    -->
---
 .../src/test/java/org/apache/fury/{type => meta}/ClassDefTest.java     | 3 +--
 .../src/test/java/org/apache/fury/{util => reflect}/PlatformTest.java  | 2 +-
 .../java/org/apache/fury/{util => reflect}/ReflectionUtilsTest.java    | 3 +--
 .../org/apache/fury/{util => reflect}/UnsafeFieldAccessorTest.java     | 3 +--
 4 files changed, 4 insertions(+), 7 deletions(-)

diff --git 
a/java/fury-core/src/test/java/org/apache/fury/type/ClassDefTest.java 
b/java/fury-core/src/test/java/org/apache/fury/meta/ClassDefTest.java
similarity index 98%
rename from java/fury-core/src/test/java/org/apache/fury/type/ClassDefTest.java
rename to java/fury-core/src/test/java/org/apache/fury/meta/ClassDefTest.java
index e4bb79f6..d44b7bad 100644
--- a/java/fury-core/src/test/java/org/apache/fury/type/ClassDefTest.java
+++ b/java/fury-core/src/test/java/org/apache/fury/meta/ClassDefTest.java
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-package org.apache.fury.type;
+package org.apache.fury.meta;
 
 import static org.testng.Assert.assertEquals;
 
@@ -32,7 +32,6 @@ import java.util.TreeSet;
 import org.apache.fury.Fury;
 import org.apache.fury.FuryTestBase;
 import org.apache.fury.memory.MemoryBuffer;
-import org.apache.fury.meta.ClassDef;
 import org.apache.fury.reflect.ReflectionUtils;
 import org.testng.annotations.Test;
 
diff --git 
a/java/fury-core/src/test/java/org/apache/fury/util/PlatformTest.java 
b/java/fury-core/src/test/java/org/apache/fury/reflect/PlatformTest.java
similarity index 99%
rename from java/fury-core/src/test/java/org/apache/fury/util/PlatformTest.java
rename to java/fury-core/src/test/java/org/apache/fury/reflect/PlatformTest.java
index 262ad923..e4c79978 100644
--- a/java/fury-core/src/test/java/org/apache/fury/util/PlatformTest.java
+++ b/java/fury-core/src/test/java/org/apache/fury/reflect/PlatformTest.java
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-package org.apache.fury.util;
+package org.apache.fury.reflect;
 
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.assertTrue;
diff --git 
a/java/fury-core/src/test/java/org/apache/fury/util/ReflectionUtilsTest.java 
b/java/fury-core/src/test/java/org/apache/fury/reflect/ReflectionUtilsTest.java
similarity index 96%
rename from 
java/fury-core/src/test/java/org/apache/fury/util/ReflectionUtilsTest.java
rename to 
java/fury-core/src/test/java/org/apache/fury/reflect/ReflectionUtilsTest.java
index 5bed7b48..91a401d9 100644
--- a/java/fury-core/src/test/java/org/apache/fury/util/ReflectionUtilsTest.java
+++ 
b/java/fury-core/src/test/java/org/apache/fury/reflect/ReflectionUtilsTest.java
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-package org.apache.fury.util;
+package org.apache.fury.reflect;
 
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.assertFalse;
@@ -25,7 +25,6 @@ import static org.testng.Assert.assertTrue;
 
 import com.google.common.collect.ImmutableList;
 import java.util.List;
-import org.apache.fury.reflect.ReflectionUtils;
 import org.apache.fury.test.bean.BeanA;
 import org.apache.fury.type.Descriptor;
 import org.testng.annotations.Test;
diff --git 
a/java/fury-core/src/test/java/org/apache/fury/util/UnsafeFieldAccessorTest.java
 
b/java/fury-core/src/test/java/org/apache/fury/reflect/UnsafeFieldAccessorTest.java
similarity index 94%
rename from 
java/fury-core/src/test/java/org/apache/fury/util/UnsafeFieldAccessorTest.java
rename to 
java/fury-core/src/test/java/org/apache/fury/reflect/UnsafeFieldAccessorTest.java
index 2796f0ed..3ceb70fd 100644
--- 
a/java/fury-core/src/test/java/org/apache/fury/util/UnsafeFieldAccessorTest.java
+++ 
b/java/fury-core/src/test/java/org/apache/fury/reflect/UnsafeFieldAccessorTest.java
@@ -17,11 +17,10 @@
  * under the License.
  */
 
-package org.apache.fury.util;
+package org.apache.fury.reflect;
 
 import static org.testng.Assert.assertEquals;
 
-import org.apache.fury.reflect.UnsafeFieldAccessor;
 import org.testng.annotations.Test;
 
 public class UnsafeFieldAccessorTest {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to