@Test public void assertGetHandler() { assertThat(JobErrorHandlerFactory.createHandler("THROW").orElse(null), instanceOf(ThrowJobErrorHandler.class)); }
public static Optional<JobErrorHandler> createHandler(final String type) { if (Strings.isNullOrEmpty(type)) { return newHandlerInstance(DEFAULT_HANDLER); } return newHandlerInstance(type); }
JobErrorHandlerFactory { public static Optional<JobErrorHandler> createHandler(final String type) { if (Strings.isNullOrEmpty(type)) { return newHandlerInstance(DEFAULT_HANDLER); } return newHandlerInstance(type); } }
JobErrorHandlerFactory { public static Optional<JobErrorHandler> createHandler(final String type) { if (Strings.isNullOrEmpty(type)) { return newHandlerInstance(DEFAULT_HANDLER); } return newHandlerInstance(type); }  }
JobErrorHandlerFactory { public static Optional<JobErrorHandler> createHandler(final String type) { if (Strings.isNullOrEmpty(type)) { return newHandlerInstance(DEFAULT_HANDLER); } return newHandlerInstance(type); }  static Optional<JobErrorHandler> createHandler(final String type); }
JobErrorHandlerFactory { public static Optional<JobErrorHandler> createHandler(final String type) { if (Strings.isNullOrEmpty(type)) { return newHandlerInstance(DEFAULT_HANDLER); } return newHandlerInstance(type); }  static Optional<JobErrorHandler> createHandler(final String type);  }