예제 #1
0
  /**
   * @return
   * @throws Exception
   */
  private EventSinkImpl createEventSink(final ClientSessionFactory sessionFactory)
      throws Exception {
    EventSinkImpl sink =
        new EventSinkImpl(eventFilter, factory, mapper, new CandlepinCommonTestConfig()) {

          @Override
          protected ClientSessionFactory createClientSessionFactory() {
            return sessionFactory;
          }
        };
    sink.initialize();
    return sink;
  }