@Test public void testNotPublicCalling() throws Exception { fooComponent.voidMethodZero(); List<String> list = StubAppender.clear(); assertEquals(1, list.size()); assertEquals("returning: voidMethodZero():void", list.get(0)); }
@Test public void testReturnValue() throws Exception { IntHolder intHolder = fooComponent.intMethodZero(); List<String> list = StubAppender.clear(); assertEquals(1, list.size()); assertEquals("returning: intMethodZero():" + new AsString().asString(intHolder), list.get(0)); }
@After public void tearDown() throws Exception { StubAppender.clear(); LogManager.shutdown(); }