@Test public void testHandle() throws Exception { adapter.setCallable(new Callable<RepeatStatus>() { @Override public RepeatStatus call() throws Exception { return RepeatStatus.FINISHED; } }); assertEquals(RepeatStatus.FINISHED, adapter.execute(null,null)); }
@Test public void testAfterPropertiesSet() throws Exception { try { adapter.afterPropertiesSet(); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { // expected } }