1.1 --- a/samples/instanceof/test/impl/InstanceProviderTest.java Sat Jun 14 09:53:33 2008 +0200
1.2 +++ b/samples/instanceof/test/impl/InstanceProviderTest.java Sat Jun 14 18:51:38 2008 +0200
1.3 @@ -31,7 +31,7 @@
1.4 }
1.5
1.6 @Test
1.7 - public void verifyBehaviourOnOldInterface() {
1.8 + public void verifyBehaviourOnOldInterface() throws Exception {
1.9 class IP implements InstanceProvider {
1.10 int instanceClass;
1.11 int instanceCreate;
1.12 @@ -55,7 +55,7 @@
1.13 }
1.14
1.15 @Test
1.16 - public void verifyBehaviourOnNewInterface() {
1.17 + public void verifyBehaviourOnNewInterface() throws Exception {
1.18 class IP implements BetterInstanceProvider {
1.19 int isInstanceOf;
1.20 int instanceClass;
1.21 @@ -85,7 +85,7 @@
1.22 assertEquals("isInstanceOf called", 1, instance.isInstanceOf);
1.23 }
1.24
1.25 - private static boolean checkIsString(InstanceProvider instance) {
1.26 + private static boolean checkIsString(InstanceProvider instance) throws Exception {
1.27 // BEGIN: instanceof.Use
1.28 if (instance instanceof BetterInstanceProvider) {
1.29 BetterInstanceProvider bip = (BetterInstanceProvider)instance;