@Test(expected = ConstraintViolationException.class) public void exceptionWhenBeanIsInvalidAsync() { this.service.doSomethingAsync(new MyBean()); }
@Async public void doSomethingAsync(@NotNull @Valid final MyBean bean) { System.out.println("do something async"); }
MyService { @Async public void doSomethingAsync(@NotNull @Valid final MyBean bean) { System.out.println("do something async"); } }
MyService { @Async public void doSomethingAsync(@NotNull @Valid final MyBean bean) { System.out.println("do something async"); }  }
MyService { @Async public void doSomethingAsync(@NotNull @Valid final MyBean bean) { System.out.println("do something async"); }  void doSomething(@NotNull @Valid final MyBean bean); @Async void doSomethingAsync(@NotNull @Valid final MyBean bean); }
MyService { @Async public void doSomethingAsync(@NotNull @Valid final MyBean bean) { System.out.println("do something async"); }  void doSomething(@NotNull @Valid final MyBean bean); @Async void doSomethingAsync(@NotNull @Valid final MyBean bean);  }