@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)); }
@Test public void testNotPublicCalling() throws Exception { fooComponent.voidMethodZero(); List<String> list = StubAppender.clear(); assertEquals(1, list.size()); assertEquals("returning: voidMethodZero():void", list.get(0)); }