From 27999eefaf961d9c99dbe315fb0b626e9e80777a Mon Sep 17 00:00:00 2001 From: ximsfei <550616352@qq.com> Date: Thu, 17 Oct 2019 19:51:14 +0800 Subject: add unit test --- src/test/javassist/bytecode/BytecodeTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/test/javassist/bytecode/BytecodeTest.java') diff --git a/src/test/javassist/bytecode/BytecodeTest.java b/src/test/javassist/bytecode/BytecodeTest.java index 5ddf5d5b..1b3a8dcc 100644 --- a/src/test/javassist/bytecode/BytecodeTest.java +++ b/src/test/javassist/bytecode/BytecodeTest.java @@ -472,10 +472,14 @@ public class BytecodeTest extends TestCase { changeMsig2("(TS;[TS;)Ljava/lang/Objec;", "java/lang/Object", "(TS;[TS;)Ljava/lang/Objec;", "java/lang/Object2"); String sig = "LPoi$Foo;LBar;LBar2;"; - //String res = "LPoi$Foo;LBar;LBar2;"; - changeMsig(sig, "java/lang/String", sig, "java/lang/String2"); - changeMsig2(sig, "java/lang/String", sig, "java/lang/String2"); - changeMsig("Ltest.List;", "ist", "Ltest.List;", "IST"); + String res = "LPoi$Foo;LBar;LBar2;"; + changeMsig(sig, "java/lang/String", res, "java/lang/String2"); + changeMsig2(sig, "java/lang/String", res, "java/lang/String2"); + //changeMsig("Ltest.List;", "ist", "Ltest.List;", "IST"); + changeMsig("Ljava/lang/String;", "java/lang/String", + "Ljava/lang/String2;", "java/lang/String2"); + changeMsig2("Ljava/lang/String;", "java/lang/String", + "Ljava/lang/String2;", "java/lang/String2"); } private void changeMsig(String old, String oldname, String result, String newname) { -- cgit v1.2.3