Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
byte-buddy-dep/src/test/java/net/bytebuddy/asm/ClassVisitorFactoryOtherTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.bytebuddy.asm; | ||
|
||
import org.junit.Test; | ||
import org.objectweb.asm.ClassVisitor; | ||
|
||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
|
||
public class ClassVisitorFactoryOtherTest { | ||
|
||
@Test(expected = IllegalArgumentException.class) | ||
public void testInvalidInput() { | ||
ClassVisitorFactory.of(Object.class); | ||
} | ||
|
||
@Test | ||
public void testGetter() { | ||
assertThat(ClassVisitorFactory.of(ClassVisitor.class).getType(), is((Object) ClassVisitor.class)); | ||
} | ||
} |