@Test public void assertCreateTracingListenerSuccess() throws TracingConfigurationException { BasicDataSource dataSource = new BasicDataSource(); dataSource.setDriverClassName(org.h2.Driver.class.getName()); dataSource.setUrl("jdbc:h2:mem:job_event_storage"); dataSource.setUsername("sa"); dataSource.setPassword(""); assertThat(new RDBTracingListenerConfiguration().createTracingListener(dataSource), instanceOf(RDBTracingListener.class)); }
@Override public TracingListener createTracingListener(final DataSource storage) throws TracingConfigurationException { try { return new RDBTracingListener(storage); } catch (final SQLException ex) { throw new TracingConfigurationException(ex); } }
RDBTracingListenerConfiguration implements TracingListenerConfiguration<DataSource> { @Override public TracingListener createTracingListener(final DataSource storage) throws TracingConfigurationException { try { return new RDBTracingListener(storage); } catch (final SQLException ex) { throw new TracingConfigurationException(ex); } } }
RDBTracingListenerConfiguration implements TracingListenerConfiguration<DataSource> { @Override public TracingListener createTracingListener(final DataSource storage) throws TracingConfigurationException { try { return new RDBTracingListener(storage); } catch (final SQLException ex) { throw new TracingConfigurationException(ex); } }  }
RDBTracingListenerConfiguration implements TracingListenerConfiguration<DataSource> { @Override public TracingListener createTracingListener(final DataSource storage) throws TracingConfigurationException { try { return new RDBTracingListener(storage); } catch (final SQLException ex) { throw new TracingConfigurationException(ex); } }  @Override TracingListener createTracingListener(final DataSource storage); @Override String getType(); }
RDBTracingListenerConfiguration implements TracingListenerConfiguration<DataSource> { @Override public TracingListener createTracingListener(final DataSource storage) throws TracingConfigurationException { try { return new RDBTracingListener(storage); } catch (final SQLException ex) { throw new TracingConfigurationException(ex); } }  @Override TracingListener createTracingListener(final DataSource storage); @Override String getType();  }