From a947939d08d144eedb164102ffe0a96f048d9375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Sat, 25 Jul 2020 22:54:57 +0800 Subject: [PATCH] fix package path in strings --- .../agent/transformer/TestableClassTransformer.java | 2 +- .../testable/core/processor/EnableTestableProcessor.java | 2 +- .../main/java/com/alibaba/testable/core/util/ConstPool.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java b/agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java index 0e5cea0..614562f 100644 --- a/agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java +++ b/agent/src/main/java/com/alibaba/testable/agent/transformer/TestableClassTransformer.java @@ -17,7 +17,7 @@ import java.util.Set; */ public class TestableClassTransformer implements ClassFileTransformer { - private static final String ENABLE_TESTABLE = "com.alibaba.testable.annotation.EnableTestable"; + private static final String ENABLE_TESTABLE = "com.alibaba.testable.core.annotation.EnableTestable"; private static final String ENABLE_TESTABLE_INJECT = "com.alibaba.testable.annotation.EnableTestableInject"; private static final String TEST_POSTFIX = "Test"; diff --git a/core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java b/core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java index 9df1448..9b12587 100644 --- a/core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java +++ b/core/src/main/java/com/alibaba/testable/core/processor/EnableTestableProcessor.java @@ -22,7 +22,7 @@ import java.util.Set; /** * @author flin */ -@SupportedAnnotationTypes("com.alibaba.testable.annotation.EnableTestable") +@SupportedAnnotationTypes("com.alibaba.testable.core.annotation.EnableTestable") @SupportedSourceVersion(SourceVersion.RELEASE_7) public class EnableTestableProcessor extends BaseProcessor { diff --git a/core/src/main/java/com/alibaba/testable/core/util/ConstPool.java b/core/src/main/java/com/alibaba/testable/core/util/ConstPool.java index 179180e..283b13a 100644 --- a/core/src/main/java/com/alibaba/testable/core/util/ConstPool.java +++ b/core/src/main/java/com/alibaba/testable/core/util/ConstPool.java @@ -5,15 +5,15 @@ package com.alibaba.testable.core.util; */ public final class ConstPool { - public static final String TYPE_UTIL = "com.alibaba.testable.util.TypeUtil"; + public static final String TYPE_UTIL = "com.alibaba.testable.core.util.TypeUtil"; public static final String CLASS_SUBSTITUTION = TYPE_UTIL + ".TestableSubstitution"; public static final String METHOD_ADD_TO_CON_POLL = TYPE_UTIL + ".addToConstructorPool"; public static final String METHOD_ADD_TO_MEM_POOL = TYPE_UTIL + ".addToMemberMethodPool"; public static final String CLASS_OF_TYPE = "class"; public static final String TYPE_CLASS = "Class"; public static final String REF_THIS = "this"; - public static final String TESTABLE_PRIVATE_ACCESSOR = "com.alibaba.testable.accessor.PrivateAccessor"; - public static final String ANNOTATION_TESTABLE_INJECT = "com.alibaba.testable.annotation.TestableInject"; + public static final String TESTABLE_PRIVATE_ACCESSOR = "com.alibaba.testable.core.accessor.PrivateAccessor"; + public static final String ANNOTATION_TESTABLE_INJECT = "com.alibaba.testable.core.annotation.TestableInject"; public static final String TESTABLE_SETUP_METHOD_NAME = "testableSetup"; }