Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mkay1375 committed Aug 15, 2024
1 parent fb64b14 commit 4894275
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

import org.junit.jupiter.api.Test;

import java.lang.reflect.InvocationTargetException;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

class ReflectionUtilsTest {

@Test
void testInvokeGetter() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
void testInvokeGetter() throws NoSuchMethodException {
// Given
var aClassInstance = new AClass();
var nameGetterMethod = aClassInstance.getClass().getDeclaredMethod("getName");
Expand All @@ -23,7 +21,7 @@ void testInvokeGetter() throws NoSuchMethodException, InvocationTargetException,
}

@Test
void testInvokeGetter_whenTypeNotMatches() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
void testInvokeGetter_whenTypeNotMatches() throws NoSuchMethodException {
// Given
var aClassInstance = new AClass();
var nameGetterMethod = aClassInstance.getClass().getDeclaredMethod("getName");
Expand Down

0 comments on commit 4894275

Please sign in to comment.