Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void throwsAnExceptionWithoutAnEnvironmentAndOnlyAThreadPool() throws Exception {
- try {
- builder.using(executorService).build("test");
- failBecauseExceptionWasNotThrown(IllegalStateException.class);
- } catch (IllegalStateException e) {
- assertThat(e.getMessage())
- .isEqualTo("Must have either an environment or both an executor service and an object mapper");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment