diff --git a/agent/pom.xml b/agent/pom.xml index 86ac5e0..6f2cdce 100755 --- a/agent/pom.xml +++ b/agent/pom.xml @@ -34,7 +34,7 @@ - com.alibaba.testable.PreMain + com.alibaba.testable.agent.PreMain true diff --git a/agent/src/main/java/com/alibaba/testable/PreMain.java b/agent/src/main/java/com/alibaba/testable/agent/PreMain.java similarity index 74% rename from agent/src/main/java/com/alibaba/testable/PreMain.java rename to agent/src/main/java/com/alibaba/testable/agent/PreMain.java index 8459c0c..35f74e5 100755 --- a/agent/src/main/java/com/alibaba/testable/PreMain.java +++ b/agent/src/main/java/com/alibaba/testable/agent/PreMain.java @@ -1,6 +1,6 @@ -package com.alibaba.testable; +package com.alibaba.testable.agent; -import com.alibaba.testable.transformer.TestableClassTransformer; +import com.alibaba.testable.agent.transformer.TestableClassTransformer; import java.lang.instrument.Instrumentation; diff --git a/agent/src/main/java/com/alibaba/testable/constant/Const.java b/agent/src/main/java/com/alibaba/testable/agent/constant/Const.java similarity index 88% rename from agent/src/main/java/com/alibaba/testable/constant/Const.java rename to agent/src/main/java/com/alibaba/testable/agent/constant/Const.java index f75f880..92ba48b 100644 --- a/agent/src/main/java/com/alibaba/testable/constant/Const.java +++ b/agent/src/main/java/com/alibaba/testable/agent/constant/Const.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.constant; +package com.alibaba.testable.agent.constant; import java.util.ArrayList; import java.util.List; diff --git a/agent/src/main/java/com/alibaba/testable/handler/TestableClassHandler.java b/agent/src/main/java/com/alibaba/testable/agent/handler/TestableClassHandler.java similarity index 91% rename from agent/src/main/java/com/alibaba/testable/handler/TestableClassHandler.java rename to agent/src/main/java/com/alibaba/testable/agent/handler/TestableClassHandler.java index 15ee99f..81ff5a6 100644 --- a/agent/src/main/java/com/alibaba/testable/handler/TestableClassHandler.java +++ b/agent/src/main/java/com/alibaba/testable/agent/handler/TestableClassHandler.java @@ -1,6 +1,8 @@ -package com.alibaba.testable.handler; +package com.alibaba.testable.agent.handler; -import com.alibaba.testable.util.ClassUtil; +import com.alibaba.testable.agent.constant.Const; +import com.alibaba.testable.agent.util.ClassUtil; +import com.alibaba.testable.agent.util.StringUtil; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter; import org.objectweb.asm.Opcodes; @@ -11,8 +13,6 @@ import java.io.IOException; import java.util.HashSet; import java.util.Set; -import static com.alibaba.testable.constant.Const.SYS_CLASSES; - /** * @author flin */ @@ -61,7 +61,7 @@ public class TestableClassHandler implements Opcodes { instructions = replaceMemberCallOps(mn, instructions, rangeStart, i); i = rangeStart; } - } else if (CONSTRUCTOR.equals(node.name) && !SYS_CLASSES.contains(node.owner)) { + } else if (CONSTRUCTOR.equals(node.name) && !Const.SYS_CLASSES.contains(node.owner)) { int rangeStart = getConstructorStart(instructions, node.owner, i); if (rangeStart >= 0) { instructions = replaceNewOps(mn, instructions, rangeStart, i); @@ -109,7 +109,7 @@ public class TestableClassHandler implements Opcodes { private String getConstructorSubstitutionDesc(String constructorDesc) { int paramCount = ClassUtil.getParameterCount(constructorDesc); - return CONSTRUCTOR_DESC_PREFIX + ClassUtil.repeat(OBJECT_DESC, paramCount) + METHOD_DESC_POSTFIX; + return CONSTRUCTOR_DESC_PREFIX + StringUtil.repeat(OBJECT_DESC, paramCount) + METHOD_DESC_POSTFIX; } private AbstractInsnNode[] replaceMemberCallOps(MethodNode mn, AbstractInsnNode[] instructions, int start, int end) { @@ -129,7 +129,7 @@ public class TestableClassHandler implements Opcodes { private String getMethodSubstitutionDesc(String methodDesc) { int paramCount = ClassUtil.getParameterCount(methodDesc); - return METHOD_DESC_PREFIX + ClassUtil.repeat(OBJECT_DESC, paramCount) + METHOD_DESC_POSTFIX; + return METHOD_DESC_PREFIX + StringUtil.repeat(OBJECT_DESC, paramCount) + METHOD_DESC_POSTFIX; } } diff --git a/agent/src/main/java/com/alibaba/testable/model/MethodInfo.java b/agent/src/main/java/com/alibaba/testable/agent/model/MethodInfo.java similarity index 94% rename from agent/src/main/java/com/alibaba/testable/model/MethodInfo.java rename to agent/src/main/java/com/alibaba/testable/agent/model/MethodInfo.java index 0e9fabd..d2ee60b 100644 --- a/agent/src/main/java/com/alibaba/testable/model/MethodInfo.java +++ b/agent/src/main/java/com/alibaba/testable/agent/model/MethodInfo.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.model; +package com.alibaba.testable.agent.model; /** * @author flin diff --git a/agent/src/main/java/com/alibaba/testable/transformer/TestableClassTransformer.java b/agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java similarity index 92% rename from agent/src/main/java/com/alibaba/testable/transformer/TestableClassTransformer.java rename to agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java index eb4d989..dc0a1c1 100644 --- a/agent/src/main/java/com/alibaba/testable/transformer/TestableClassTransformer.java +++ b/agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java @@ -1,7 +1,7 @@ -package com.alibaba.testable.transformer; +package com.alibaba.testable.agent.transformer; -import com.alibaba.testable.handler.TestableClassHandler; -import com.alibaba.testable.util.ClassUtil; +import com.alibaba.testable.agent.handler.TestableClassHandler; +import com.alibaba.testable.agent.util.ClassUtil; import java.io.IOException; import java.lang.instrument.ClassFileTransformer; diff --git a/agent/src/main/java/com/alibaba/testable/util/ClassUtil.java b/agent/src/main/java/com/alibaba/testable/agent/util/ClassUtil.java similarity index 88% rename from agent/src/main/java/com/alibaba/testable/util/ClassUtil.java rename to agent/src/main/java/com/alibaba/testable/agent/util/ClassUtil.java index fdb73e9..4fc71b8 100644 --- a/agent/src/main/java/com/alibaba/testable/util/ClassUtil.java +++ b/agent/src/main/java/com/alibaba/testable/agent/util/ClassUtil.java @@ -1,5 +1,6 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.agent.util; +import com.alibaba.testable.agent.constant.Const; import org.objectweb.asm.ClassReader; import org.objectweb.asm.tree.AnnotationNode; import org.objectweb.asm.tree.ClassNode; @@ -8,8 +9,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import static com.alibaba.testable.constant.Const.*; - /** * @author flin */ @@ -28,13 +27,17 @@ public class ClassUtil { private static final char CLASS_END = ';'; private static final char TYPE_ARRAY = '['; + /** + * Get annotation on class definition + * @param className class that need to explore + */ public static List getAnnotations(String className) { try { List annotations = new ArrayList(); ClassNode cn = new ClassNode(); new ClassReader(className).accept(cn, 0); for (AnnotationNode an : cn.visibleAnnotations) { - String annotationName = an.desc.replace(SLASH, DOT).substring(1, an.desc.length() - 1); + String annotationName = an.desc.replace(Const.SLASH, Const.DOT).substring(1, an.desc.length() - 1); annotations.add(annotationName); } return annotations; @@ -95,12 +98,4 @@ public class ClassUtil { } } - public static String repeat(String text, int times) { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < times; i++) { - sb.append(text); - } - return sb.toString(); - } - } diff --git a/agent/src/main/java/com/alibaba/testable/agent/util/StringUtil.java b/agent/src/main/java/com/alibaba/testable/agent/util/StringUtil.java new file mode 100644 index 0000000..0eaec24 --- /dev/null +++ b/agent/src/main/java/com/alibaba/testable/agent/util/StringUtil.java @@ -0,0 +1,16 @@ +package com.alibaba.testable.agent.util; + +/** + * @author flin + */ +public class StringUtil { + + public static String repeat(String text, int times) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < times; i++) { + sb.append(text); + } + return sb.toString(); + } + +} diff --git a/agent/src/test/java/com/alibaba/testable/util/ClassUtilTest.java b/agent/src/test/java/com/alibaba/testable/agent/util/ClassUtilTest.java similarity index 96% rename from agent/src/test/java/com/alibaba/testable/util/ClassUtilTest.java rename to agent/src/test/java/com/alibaba/testable/agent/util/ClassUtilTest.java index bafbcbf..692c1d9 100644 --- a/agent/src/test/java/com/alibaba/testable/util/ClassUtilTest.java +++ b/agent/src/test/java/com/alibaba/testable/agent/util/ClassUtilTest.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.agent.util; import org.junit.jupiter.api.Test; diff --git a/core/src/main/java/com/alibaba/testable/accessor/PrivateAccessor.java b/core/src/main/java/com/alibaba/testable/core/accessor/PrivateAccessor.java similarity index 93% rename from core/src/main/java/com/alibaba/testable/accessor/PrivateAccessor.java rename to core/src/main/java/com/alibaba/testable/core/accessor/PrivateAccessor.java index 76d15c8..90d9252 100644 --- a/core/src/main/java/com/alibaba/testable/accessor/PrivateAccessor.java +++ b/core/src/main/java/com/alibaba/testable/core/accessor/PrivateAccessor.java @@ -1,6 +1,6 @@ -package com.alibaba.testable.accessor; +package com.alibaba.testable.core.accessor; -import com.alibaba.testable.util.TypeUtil; +import com.alibaba.testable.core.util.TypeUtil; import java.lang.reflect.Field; import java.lang.reflect.Method; diff --git a/core/src/main/java/com/alibaba/testable/annotation/EnableTestable.java b/core/src/main/java/com/alibaba/testable/core/annotation/EnableTestable.java similarity index 84% rename from core/src/main/java/com/alibaba/testable/annotation/EnableTestable.java rename to core/src/main/java/com/alibaba/testable/core/annotation/EnableTestable.java index 2417d56..ff3c60a 100644 --- a/core/src/main/java/com/alibaba/testable/annotation/EnableTestable.java +++ b/core/src/main/java/com/alibaba/testable/core/annotation/EnableTestable.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.annotation; +package com.alibaba.testable.core.annotation; import java.lang.annotation.*; diff --git a/core/src/main/java/com/alibaba/testable/annotation/TestableInject.java b/core/src/main/java/com/alibaba/testable/core/annotation/TestableInject.java similarity index 83% rename from core/src/main/java/com/alibaba/testable/annotation/TestableInject.java rename to core/src/main/java/com/alibaba/testable/core/annotation/TestableInject.java index 219d144..74381d6 100644 --- a/core/src/main/java/com/alibaba/testable/annotation/TestableInject.java +++ b/core/src/main/java/com/alibaba/testable/core/annotation/TestableInject.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.annotation; +package com.alibaba.testable.core.annotation; import java.lang.annotation.*; diff --git a/core/src/main/java/com/alibaba/testable/generator/BaseGenerator.java b/core/src/main/java/com/alibaba/testable/core/generator/BaseGenerator.java similarity index 85% rename from core/src/main/java/com/alibaba/testable/generator/BaseGenerator.java rename to core/src/main/java/com/alibaba/testable/core/generator/BaseGenerator.java index 0c92595..884943f 100644 --- a/core/src/main/java/com/alibaba/testable/generator/BaseGenerator.java +++ b/core/src/main/java/com/alibaba/testable/core/generator/BaseGenerator.java @@ -1,6 +1,6 @@ -package com.alibaba.testable.generator; +package com.alibaba.testable.core.generator; -import com.alibaba.testable.model.TestableContext; +import com.alibaba.testable.core.model.TestableContext; import com.sun.tools.javac.tree.JCTree.*; /** diff --git a/core/src/main/java/com/alibaba/testable/generator/PrivateAccessStatementGenerator.java b/core/src/main/java/com/alibaba/testable/core/generator/PrivateAccessStatementGenerator.java similarity index 89% rename from core/src/main/java/com/alibaba/testable/generator/PrivateAccessStatementGenerator.java rename to core/src/main/java/com/alibaba/testable/core/generator/PrivateAccessStatementGenerator.java index 216eb54..23d69d9 100644 --- a/core/src/main/java/com/alibaba/testable/generator/PrivateAccessStatementGenerator.java +++ b/core/src/main/java/com/alibaba/testable/core/generator/PrivateAccessStatementGenerator.java @@ -1,7 +1,7 @@ -package com.alibaba.testable.generator; +package com.alibaba.testable.core.generator; -import com.alibaba.testable.model.TestableContext; -import com.alibaba.testable.util.ConstPool; +import com.alibaba.testable.core.model.TestableContext; +import com.alibaba.testable.core.util.ConstPool; import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.util.List; import com.sun.tools.javac.util.ListBuffer; diff --git a/core/src/main/java/com/alibaba/testable/generator/TestSetupMethodGenerator.java b/core/src/main/java/com/alibaba/testable/core/generator/TestSetupMethodGenerator.java similarity index 95% rename from core/src/main/java/com/alibaba/testable/generator/TestSetupMethodGenerator.java rename to core/src/main/java/com/alibaba/testable/core/generator/TestSetupMethodGenerator.java index 8e6294e..e31d29e 100644 --- a/core/src/main/java/com/alibaba/testable/generator/TestSetupMethodGenerator.java +++ b/core/src/main/java/com/alibaba/testable/core/generator/TestSetupMethodGenerator.java @@ -1,8 +1,7 @@ -package com.alibaba.testable.generator; +package com.alibaba.testable.core.generator; -import com.alibaba.testable.model.TestLibType; -import com.alibaba.testable.model.TestableContext; -import com.alibaba.testable.util.ConstPool; +import com.alibaba.testable.core.model.TestableContext; +import com.alibaba.testable.core.util.ConstPool; import com.sun.tools.javac.code.Type; import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.util.List; diff --git a/core/src/main/java/com/alibaba/testable/model/TestableContext.java b/core/src/main/java/com/alibaba/testable/core/model/TestableContext.java similarity index 93% rename from core/src/main/java/com/alibaba/testable/model/TestableContext.java rename to core/src/main/java/com/alibaba/testable/core/model/TestableContext.java index 1559ef0..85158cf 100644 --- a/core/src/main/java/com/alibaba/testable/model/TestableContext.java +++ b/core/src/main/java/com/alibaba/testable/core/model/TestableContext.java @@ -1,6 +1,6 @@ -package com.alibaba.testable.model; +package com.alibaba.testable.core.model; -import com.alibaba.testable.util.TestableLogger; +import com.alibaba.testable.core.util.TestableLogger; import com.sun.tools.javac.api.JavacTrees; import com.sun.tools.javac.tree.TreeMaker; import com.sun.tools.javac.util.Names; diff --git a/core/src/main/java/com/alibaba/testable/processor/BaseProcessor.java b/core/src/main/java/com/alibaba/testable/core/processor/BaseProcessor.java similarity index 86% rename from core/src/main/java/com/alibaba/testable/processor/BaseProcessor.java rename to core/src/main/java/com/alibaba/testable/core/processor/BaseProcessor.java index bce23aa..a08e508 100644 --- a/core/src/main/java/com/alibaba/testable/processor/BaseProcessor.java +++ b/core/src/main/java/com/alibaba/testable/core/processor/BaseProcessor.java @@ -1,7 +1,7 @@ -package com.alibaba.testable.processor; +package com.alibaba.testable.core.processor; -import com.alibaba.testable.model.TestableContext; -import com.alibaba.testable.util.TestableLogger; +import com.alibaba.testable.core.model.TestableContext; +import com.alibaba.testable.core.util.TestableLogger; import com.sun.tools.javac.api.JavacTrees; import com.sun.tools.javac.processing.JavacProcessingEnvironment; import com.sun.tools.javac.tree.TreeMaker; diff --git a/core/src/main/java/com/alibaba/testable/processor/EnableTestableProcessor.java b/core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java similarity index 93% rename from core/src/main/java/com/alibaba/testable/processor/EnableTestableProcessor.java rename to core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java index d9c8ed2..9df1448 100644 --- a/core/src/main/java/com/alibaba/testable/processor/EnableTestableProcessor.java +++ b/core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java @@ -1,8 +1,8 @@ -package com.alibaba.testable.processor; +package com.alibaba.testable.core.processor; -import com.alibaba.testable.annotation.EnableTestable; -import com.alibaba.testable.translator.EnableTestableTranslator; -import com.alibaba.testable.util.ResourceUtil; +import com.alibaba.testable.core.annotation.EnableTestable; +import com.alibaba.testable.core.translator.EnableTestableTranslator; +import com.alibaba.testable.core.util.ResourceUtil; import com.sun.tools.javac.code.Symbol; import com.sun.tools.javac.tree.JCTree; diff --git a/core/src/main/java/com/alibaba/testable/translator/BaseTranslator.java b/core/src/main/java/com/alibaba/testable/core/translator/BaseTranslator.java similarity index 93% rename from core/src/main/java/com/alibaba/testable/translator/BaseTranslator.java rename to core/src/main/java/com/alibaba/testable/core/translator/BaseTranslator.java index 974727a..8a8be87 100644 --- a/core/src/main/java/com/alibaba/testable/translator/BaseTranslator.java +++ b/core/src/main/java/com/alibaba/testable/core/translator/BaseTranslator.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.translator; +package com.alibaba.testable.core.translator; import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.tree.TreeTranslator; diff --git a/core/src/main/java/com/alibaba/testable/translator/EnableTestableTranslator.java b/core/src/main/java/com/alibaba/testable/core/translator/EnableTestableTranslator.java similarity index 95% rename from core/src/main/java/com/alibaba/testable/translator/EnableTestableTranslator.java rename to core/src/main/java/com/alibaba/testable/core/translator/EnableTestableTranslator.java index 9f3811c..4d56311 100644 --- a/core/src/main/java/com/alibaba/testable/translator/EnableTestableTranslator.java +++ b/core/src/main/java/com/alibaba/testable/core/translator/EnableTestableTranslator.java @@ -1,10 +1,9 @@ -package com.alibaba.testable.translator; +package com.alibaba.testable.core.translator; -import com.alibaba.testable.generator.PrivateAccessStatementGenerator; -import com.alibaba.testable.generator.TestSetupMethodGenerator; -import com.alibaba.testable.model.TestLibType; -import com.alibaba.testable.model.TestableContext; -import com.alibaba.testable.util.ConstPool; +import com.alibaba.testable.core.generator.PrivateAccessStatementGenerator; +import com.alibaba.testable.core.generator.TestSetupMethodGenerator; +import com.alibaba.testable.core.model.TestableContext; +import com.alibaba.testable.core.util.ConstPool; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.util.List; diff --git a/core/src/main/java/com/alibaba/testable/util/ConstPool.java b/core/src/main/java/com/alibaba/testable/core/util/ConstPool.java similarity index 81% rename from core/src/main/java/com/alibaba/testable/util/ConstPool.java rename to core/src/main/java/com/alibaba/testable/core/util/ConstPool.java index bff9a1c..f46bc1d 100644 --- a/core/src/main/java/com/alibaba/testable/util/ConstPool.java +++ b/core/src/main/java/com/alibaba/testable/core/util/ConstPool.java @@ -1,14 +1,10 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.core.util; /** * @author flin */ public final class ConstPool { - public static final String NE_PKG = "n"; - public static final String NE_CLS = "e"; - public static final String NE_NEW = "w"; - public static final String NE_FUN = "f"; public static final String TYPE_UTIL = "com.alibaba.testable.util.TypeUtil"; public static final String CLASS_SUBSTITUTION = TYPE_UTIL + ".TestableSubstitution"; public static final String METHOD_ADD_TO_CON_POLL = TYPE_UTIL + ".addToConstructorPool"; diff --git a/core/src/main/java/com/alibaba/testable/util/ResourceUtil.java b/core/src/main/java/com/alibaba/testable/core/util/ResourceUtil.java similarity index 97% rename from core/src/main/java/com/alibaba/testable/util/ResourceUtil.java rename to core/src/main/java/com/alibaba/testable/core/util/ResourceUtil.java index 6b78951..1c7b8f3 100644 --- a/core/src/main/java/com/alibaba/testable/util/ResourceUtil.java +++ b/core/src/main/java/com/alibaba/testable/core/util/ResourceUtil.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.core.util; import java.io.*; diff --git a/core/src/main/java/com/alibaba/testable/util/StringUtil.java b/core/src/main/java/com/alibaba/testable/core/util/StringUtil.java similarity index 91% rename from core/src/main/java/com/alibaba/testable/util/StringUtil.java rename to core/src/main/java/com/alibaba/testable/core/util/StringUtil.java index 7e85382..3958f0b 100644 --- a/core/src/main/java/com/alibaba/testable/util/StringUtil.java +++ b/core/src/main/java/com/alibaba/testable/core/util/StringUtil.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.core.util; import java.util.List; diff --git a/core/src/main/java/com/alibaba/testable/util/TestableLogger.java b/core/src/main/java/com/alibaba/testable/core/util/TestableLogger.java similarity index 93% rename from core/src/main/java/com/alibaba/testable/util/TestableLogger.java rename to core/src/main/java/com/alibaba/testable/core/util/TestableLogger.java index aab042e..aac6273 100644 --- a/core/src/main/java/com/alibaba/testable/util/TestableLogger.java +++ b/core/src/main/java/com/alibaba/testable/core/util/TestableLogger.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.core.util; import javax.annotation.processing.Messager; import javax.tools.Diagnostic; diff --git a/core/src/main/java/com/alibaba/testable/util/TypeUtil.java b/core/src/main/java/com/alibaba/testable/core/util/TypeUtil.java similarity index 99% rename from core/src/main/java/com/alibaba/testable/util/TypeUtil.java rename to core/src/main/java/com/alibaba/testable/core/util/TypeUtil.java index 9cf78fd..dc00692 100644 --- a/core/src/main/java/com/alibaba/testable/util/TypeUtil.java +++ b/core/src/main/java/com/alibaba/testable/core/util/TypeUtil.java @@ -1,4 +1,4 @@ -package com.alibaba.testable.util; +package com.alibaba.testable.core.util; import java.lang.reflect.Constructor; import java.lang.reflect.Method; diff --git a/core/src/main/java/com/alibaba/testable/model/TestLibType.java b/core/src/main/java/com/alibaba/testable/model/TestLibType.java deleted file mode 100644 index 2541908..0000000 --- a/core/src/main/java/com/alibaba/testable/model/TestLibType.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.alibaba.testable.model; - -/** - * @author flin - */ - -public enum TestLibType { - JUnit4, - JUnit5 -} diff --git a/core/src/main/java/n/e.java b/core/src/main/java/n/e.java index d4d6dfa..cee93cc 100644 --- a/core/src/main/java/n/e.java +++ b/core/src/main/java/n/e.java @@ -1,7 +1,7 @@ package n; -import static com.alibaba.testable.util.TypeUtil.wrapCall; -import static com.alibaba.testable.util.TypeUtil.wrapNew; +import static com.alibaba.testable.core.util.TypeUtil.wrapCall; +import static com.alibaba.testable.core.util.TypeUtil.wrapNew; public final class e { diff --git a/core/src/main/resources/META-INF/services/javax.annotation.processing.Processor b/core/src/main/resources/META-INF/services/javax.annotation.processing.Processor index 5f11897..35df998 100644 --- a/core/src/main/resources/META-INF/services/javax.annotation.processing.Processor +++ b/core/src/main/resources/META-INF/services/javax.annotation.processing.Processor @@ -1 +1 @@ -com.alibaba.testable.processor.EnableTestableProcessor +com.alibaba.testable.core.processor.EnableTestableProcessor