@Test public void testApply() throws Throwable { Invocation invocation = new Invocation(new Object(), Object.class.getMethod("toString")); new DummyFault().apply(invocation); assertTrue(invocation.proceeded()); }
@Override public boolean apply(Invocation invocation) throws Throwable { System.out.printf("dummy-%s intercepts [%s]\n", id(), invocation); invocation.proceed(); return true; }
DummyFault extends Fault implements Validator, Controller, Interceptor { @Override public boolean apply(Invocation invocation) throws Throwable { System.out.printf("dummy-%s intercepts [%s]\n", id(), invocation); invocation.proceed(); return true; } }
DummyFault extends Fault implements Validator, Controller, Interceptor { @Override public boolean apply(Invocation invocation) throws Throwable { System.out.printf("dummy-%s intercepts [%s]\n", id(), invocation); invocation.proceed(); return true; }  }
DummyFault extends Fault implements Validator, Controller, Interceptor { @Override public boolean apply(Invocation invocation) throws Throwable { System.out.printf("dummy-%s intercepts [%s]\n", id(), invocation); invocation.proceed(); return true; }  @Override void activate(); @Override void deactivate(); @Override Set<Violation> validate(); @Override boolean apply(Invocation invocation); }
DummyFault extends Fault implements Validator, Controller, Interceptor { @Override public boolean apply(Invocation invocation) throws Throwable { System.out.printf("dummy-%s intercepts [%s]\n", id(), invocation); invocation.proceed(); return true; }  @Override void activate(); @Override void deactivate(); @Override Set<Violation> validate(); @Override boolean apply(Invocation invocation);  }