コード例 #1
0
 @Test(expected = IllegalStateException.class)
 public void decorateXaDataSourceWrapper() {
   decorator.decorate(mockXaDataSourceWrapper, DATA_SOURCE_NAME, null, mockMuleContext);
 }
コード例 #2
0
 @Test
 public void decorateXaDataSource() {
   decorator.decorate(mockXaDataSource, DATA_SOURCE_NAME, null, mockMuleContext);
 }
コード例 #3
0
 @Test
 public void appliesToXaDataSource() {
   assertThat(decorator.appliesTo(mockXaDataSource, mockMuleContext), is(true));
 }
コード例 #4
0
 @Test
 public void appliesToXaDataSourceWrapper() {
   assertThat(decorator.appliesTo(mockXaDataSourceWrapper, mockMuleContext), is(false));
 }
コード例 #5
0
 @Test
 public void appliesToDataSource() {
   assertThat(decorator.appliesTo(mockDataSource, mockMuleContext), is(false));
 }