Package org.springframework.issues.exceptions

Examples of org.springframework.issues.exceptions.UncheckedException


    mvc.perform(get(ExampleController.PATH)).andExpect(content().string(CatchAllExceptionHandler.RESPONSE));
  }
 
  @Test
  public void uncheckedExceptionHandled() throws Throwable {
    Mockito.when(mockService.get()).thenThrow(new UncheckedException());
    mvc.perform(get(ExampleController.PATH)).andExpect(content().string(UncheckedExceptionHandler.RESPONSE));
  }
View Full Code Here

TOP

Related Classes of org.springframework.issues.exceptions.UncheckedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.