elvyssoares

JerseyClientBuilderTest - Original

May 19th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. @Test
  2. public void throwsAnExceptionWithoutAnEnvironmentAndOnlyAThreadPool() throws Exception {
  3.     try {
  4.         builder.using(executorService).build("test");
  5.         failBecauseExceptionWasNotThrown(IllegalStateException.class);
  6.     } catch (IllegalStateException e) {
  7.         assertThat(e.getMessage())
  8.             .isEqualTo("Must have either an environment or both an executor service and an object mapper");
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment