diff -r 935c169667a2 -r 3bc4c54f4bcc samples/componentinjection/test/org/apidesign/component/InjectionSlotTest.java --- a/samples/componentinjection/test/org/apidesign/component/InjectionSlotTest.java Sat Jun 14 09:53:46 2008 +0200 +++ b/samples/componentinjection/test/org/apidesign/component/InjectionSlotTest.java Sat Jun 14 09:56:12 2008 +0200 @@ -14,7 +14,8 @@ @BeforeClass public static void setUpClass() throws Exception { // this is a support for "dynamic" registration of any class - // into the global pool of Lookup.getDefault() and java.util.ServiceLoader + // into the global pool of Lookup.getDefault() and + // java.util.ServiceLoader // either in @BeforeClass or @Before register // classes of the mock instances that you want your code // to find @@ -25,16 +26,23 @@ public void singleSlot() { InjectionSlot result = InjectionSlot.singleSlot(); assertNotNull("Some result found", result); - assertEquals("The first is ImplOne", ImplOne.class, result.getClass()); + assertEquals( + "The first is ImplOne", ImplOne.class, result.getClass() + ); } @Test public void multiSlot() { - Iterator it = InjectionSlot.multiSlot().iterator(); + Iterator it = + InjectionSlot.multiSlot().iterator(); assertTrue("Has at least one", it.hasNext()); - assertEquals("The first is ImplOne", ImplOne.class, it.next().getClass()); + assertEquals( + "The first is ImplOne", ImplOne.class, it.next().getClass() + ); assertTrue("Has two", it.hasNext()); - assertEquals("The second is ImplTwo", ImplTwo.class, it.next().getClass()); + assertEquals( + "The second is ImplTwo", ImplTwo.class, it.next().getClass() + ); assertFalse("No other instance registered", it.hasNext()); }