295296297298299300301302303304305
ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, method); try { sc.createObject(); unreachable(); } catch (RuntimeException ex) { assertEquals(ex.getMessage(), "Error invoking service builder method "
336337338339340341342343344345346
replay(); ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, method); Object actual = sc.createObject(); verify(); assertSame(actual, fixture.fie); }
4041424344454647484950
replay(); ObjectCreator isb = new InterceptorStackBuilder(module, SERVICE_ID, core); Object intercepted = isb.createObject(); assertSame(intercepted, coreObject); verify(); }
6768697071727374757677
100101102103104105106107108109110
replay(); ObjectCreator isb = new InterceptorStackBuilder(module, SERVICE_ID, core); Object intercepted = isb.createObject(); assertSame(intercepted, interceptor1); verify(); }
5657585960616263646566
replay(); ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, findMethod(fixture, "build_noargs")); Object actual = sc.createObject(); assertSame(actual, fixture.fie); verify(); }
replay(); ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, method); Object actual = sc.createObject(); assertSame(actual, fixture.fie); verify(); }
137138139140141142143144145146147
167168169170171172173174175176177
replay(); ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, findMethod(fixture, "build_injected")); Object actual = sc.createObject(); assertSame(actual, fixture.fie); verify(); }
199200201202203204205206207208209
replay(); ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, findMethod(fixture, "buildWithOrderedConfiguration")); Object actual = sc.createObject(); assertSame(actual, fixture.fie); verify(); }