diff options
author | ximsfei <550616352@qq.com> | 2019-10-17 19:51:14 +0800 |
---|---|---|
committer | ximsfei <550616352@qq.com> | 2019-10-17 19:51:14 +0800 |
commit | 27999eefaf961d9c99dbe315fb0b626e9e80777a (patch) | |
tree | d41d193e4f61d60468190177dabde2ec60c8e949 /src | |
parent | 22075222e758ee69f9f9cf69291ff83f5924f7fb (diff) | |
download | javassist-27999eefaf961d9c99dbe315fb0b626e9e80777a.tar.gz javassist-27999eefaf961d9c99dbe315fb0b626e9e80777a.zip |
add unit test
Diffstat (limited to 'src')
-rw-r--r-- | src/test/javassist/bytecode/BytecodeTest.java | 12 |
1 files changed, 8 insertions, 4 deletions
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("<S:Ljava/lang/Object;>(TS;[TS;)Ljava/lang/Objec;", "java/lang/Object", "<S:Ljava/lang/Object2;>(TS;[TS;)Ljava/lang/Objec;", "java/lang/Object2"); String sig = "<T:Ljava/lang/Exception;>LPoi$Foo<Ljava/lang/String;>;LBar;LBar2;"; - //String res = "<T:Ljava/lang/Exception;>LPoi$Foo<Ljava/lang/String2;>;LBar;LBar2;"; - changeMsig(sig, "java/lang/String", sig, "java/lang/String2"); - changeMsig2(sig, "java/lang/String", sig, "java/lang/String2"); - changeMsig("Ltest<TE;>.List;", "ist", "Ltest<TE;>.List;", "IST"); + String res = "<T:Ljava/lang/Exception;>LPoi$Foo<Ljava/lang/String2;>;LBar;LBar2;"; + changeMsig(sig, "java/lang/String", res, "java/lang/String2"); + changeMsig2(sig, "java/lang/String", res, "java/lang/String2"); + //changeMsig("Ltest<TE;>.List;", "ist", "Ltest<TE;>.List;", "IST"); + changeMsig("Ljava/lang/String<Ljava/lang/Object;>;", "java/lang/String", + "Ljava/lang/String2<Ljava/lang/Object;>;", "java/lang/String2"); + changeMsig2("Ljava/lang/String<Ljava/lang/Object;>;", "java/lang/String", + "Ljava/lang/String2<Ljava/lang/Object;>;", "java/lang/String2"); } private void changeMsig(String old, String oldname, String result, String newname) { |