Skip to content

Commit

Permalink
Add additional tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 20, 2022
1 parent 98b6fc9 commit f28f75e
Showing 1 changed file with 20 additions and 0 deletions.
@@ -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));
}
}

0 comments on commit f28f75e

Please sign in to comment.