/** * Invoke the delegate method and return the result. * * @see ItemProcessor#process(Object) */ @Override public O process(I item) throws Exception { return invokeDelegateMethodWithArgument(item); }
@Test public void testProcess() throws Exception { Foo item = new Foo(0,"foo",1); assertEquals("foo", processor.process(item)); }
/** * Invoke the delegate method and return the result. * * @see ItemProcessor#process(Object) */ @Override public O process(I item) throws Exception { return invokeDelegateMethodWithArgument(item); }