Skip to content

Commit

Permalink
Minor corrections in Java8Test.
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Oct 4, 2018
1 parent 3b34956 commit 0e0742d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/test/java/ognl/Java8Test.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ognl;

import java.beans.IntrospectionException;
import java.util.List;

import junit.framework.TestCase;
Expand All @@ -19,7 +18,7 @@ public void testDefaultMethodOnSubClass() {
assertNotNull(defaultMethod);
}

public void testGetDeclaredMethods() throws IntrospectionException, OgnlException{
public void testGetDeclaredMethods() {
List defaultMethod = OgnlRuntime.getDeclaredMethods(SubClassWithDefaults.class, "name", false);
assertNotNull(defaultMethod);
defaultMethod = OgnlRuntime.getDeclaredMethods(ClassWithDefaults.class, "name", false);
Expand All @@ -29,13 +28,9 @@ public void testGetDeclaredMethods() throws IntrospectionException, OgnlExceptio
}

class SubClassWithDefaults extends ClassWithDefaults {

public String getName() { return "name"; }

}

class ClassWithDefaults /* implements SubInterfaceWithDefaults */ {

}

/**
Expand Down

0 comments on commit 0e0742d

Please sign in to comment.