@Test(expected = IllegalStateException.class) public void testMandatoryPropertiesUnset() throws Exception { MessageSourcePollerInterceptor interceptor = new MessageSourcePollerInterceptor(); interceptor.afterPropertiesSet(); }
@Test public void testMandatoryPropertiesSetViaConstructor() throws Exception { MessageSourcePollerInterceptor interceptor = new MessageSourcePollerInterceptor(new TestMessageSource("foo")); interceptor.afterPropertiesSet(); }
@Test public void testMandatoryPropertiesSet() throws Exception { MessageSourcePollerInterceptor interceptor = new MessageSourcePollerInterceptor(); interceptor.setMessageSource(new TestMessageSource("foo")); interceptor.afterPropertiesSet(); }