55import java .util .Collection ;
66
77import org .eclipse .jdt .core .IType ;
8+ import org .eclipse .jdt .core .JavaModelException ;
89import org .junit .Test ;
910import org .moreunit .test .context .ContextTestCase ;
1011import org .moreunit .test .context .Preferences ;
@@ -15,7 +16,7 @@ public class InterfaceCorrespondingTypeSearcherTest extends ContextTestCase
1516{
1617 @ Project (mainCls = "class Foo" , testCls = "FooTest" )
1718 @ Test
18- public void getMatches_should_return_test_for_class () throws Exception
19+ public void getMatches_should_return_test_for_class ()
1920 {
2021 CorrespondingTypeSearcher searcher = new CorrespondingTypeSearcher (context .getCompilationUnit ("Foo" ), getPreferences ());
2122 Collection <IType > matches = searcher .getMatches (false );
@@ -25,7 +26,7 @@ public void getMatches_should_return_test_for_class() throws Exception
2526
2627 @ Project (mainCls = "interface Foo" , testCls = "FooTest" )
2728 @ Test
28- public void getMatches_should_return_test_for_interface () throws Exception
29+ public void getMatches_should_return_test_for_interface ()
2930 {
3031 context .getPrimaryTypeHandler ("Foo" ).createSubclass ("FooImpl" );
3132
@@ -37,7 +38,7 @@ public void getMatches_should_return_test_for_interface() throws Exception
3738
3839 @ Project (mainCls = "interface Foo" , testCls = "FooTest" )
3940 @ Test
40- public void getMatches_should_return_implementation_for_interface_test_and_exclude_interface () throws Exception
41+ public void getMatches_should_return_implementation_for_interface_test_and_exclude_interface ()
4142 {
4243 context .getPrimaryTypeHandler ("Foo" ).createSubclass ("FooImpl" );
4344
@@ -50,7 +51,7 @@ public void getMatches_should_return_implementation_for_interface_test_and_exclu
5051
5152 @ Project (mainCls = "interface Foo" , testCls = "FooTest" )
5253 @ Test
53- public void getMatches_should_return_interface_test_for_implementation () throws Exception
54+ public void getMatches_should_return_interface_test_for_implementation ()
5455 {
5556 context .getPrimaryTypeHandler ("Foo" ).createSubclass ("FooImpl" );
5657
@@ -62,7 +63,7 @@ public void getMatches_should_return_interface_test_for_implementation() throws
6263
6364 @ Project (mainCls = "interface Foo" )
6465 @ Test
65- public void getMatches_should_return_interface_for_implementation_test () throws Exception
66+ public void getMatches_should_return_interface_for_implementation_test ()
6667 {
6768 context .getPrimaryTypeHandler ("Foo" ).createSubclass ("FooImpl" );
6869 context .getProjectHandler ().getTestSrcFolderHandler ().createClass ("FooImplTest" );
@@ -75,7 +76,7 @@ public void getMatches_should_return_interface_for_implementation_test() throws
7576
7677 @ Project (mainCls = "interface Foo" , testCls = "FooTest" )
7778 @ Test
78- public void getMatches_should_include_interface_if_it_has_default_method () throws Exception
79+ public void getMatches_should_include_interface_if_it_has_default_method () throws JavaModelException
7980 {
8081 IType foo = context .getPrimaryTypeHandler ("Foo" ).get ();
8182 foo .createMethod ("default void bar() {}" , null , true , null );
0 commit comments