Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evgeny Mandrikov
asm
Commits
d0d75430
Commit
d0d75430
authored
Feb 22, 2019
by
Evgeny Mandrikov
Browse files
add unit test
parent
b5dc9017
Pipeline
#4431
failed with stage
in 5 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
asm-util/src/test/java/org/objectweb/asm/util/CheckClassAdapterTest.java
View file @
d0d75430
...
...
@@ -340,6 +340,17 @@ public class CheckClassAdapterTest extends AsmTest implements Opcodes {
assertEquals
(
"<T::LI.J<*+LA;>;>()V^LA;X: error at index 24"
,
exception
.
getMessage
());
}
@Test
public
void
testVisitMethod_legal
()
{
CheckClassAdapter
checkClassAdapter
=
new
CheckClassAdapter
(
null
);
checkClassAdapter
.
visit
(
V1_1
,
ACC_PUBLIC
,
"C"
,
null
,
"java/lang/Object"
,
null
);
MethodVisitor
mv
=
checkClassAdapter
.
visitMethod
(
ACC_PUBLIC
,
"m"
,
"()V"
,
null
,
null
);
mv
.
visitCode
();
mv
.
visitInsn
(
Opcodes
.
RETURN
);
mv
.
visitMaxs
(
0
,
1
);
mv
.
visitEnd
();
}
@Test
public
void
testVisitTypeAnnotation_illegalAnnotation1
()
{
CheckClassAdapter
checkClassAdapter
=
new
CheckClassAdapter
(
null
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment