Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Rule
- public ExpectedException thrown = ExpectedException.none();
- @Test
- public void throwsAnExceptionWithoutAnEnvironmentAndOnlyAThreadPool() {
- thrown.expect(IllegalStateException.class);
- thrown.expectMessage("Must have either an environment or both an executor service and an object mapper");
- builder.using(executorService).build("test");
- }
Advertisement
Add Comment
Please, Sign In to add comment