@Test(expected = IOException.class) public void invalid_stepUnit() throws Exception { Map<String, String> conf = new HashMap<>(); conf.put(BasicMonitorProvider.KEY_STEP_UNIT, "INVALID"); ServiceProfile<ExecutionMonitorProvider> profile = new ServiceProfile<>( "testing", BasicMonitorProvider.class, conf, ProfileContext.system(getClass().getClassLoader())); profile.newInstance(); }
@Override public PhaseMonitor newInstance(ExecutionContext context) throws InterruptedException, IOException { if (context == null) { throw new IllegalArgumentException("context must not be null"); } return new LoggingExecutionMonitor(context, stepUnit); }
BasicMonitorProvider extends ExecutionMonitorProvider { @Override public PhaseMonitor newInstance(ExecutionContext context) throws InterruptedException, IOException { if (context == null) { throw new IllegalArgumentException("context must not be null"); } return new LoggingExecutionMonitor(context, stepUnit); } }
BasicMonitorProvider extends ExecutionMonitorProvider { @Override public PhaseMonitor newInstance(ExecutionContext context) throws InterruptedException, IOException { if (context == null) { throw new IllegalArgumentException("context must not be null"); } return new LoggingExecutionMonitor(context, stepUnit); }  }
BasicMonitorProvider extends ExecutionMonitorProvider { @Override public PhaseMonitor newInstance(ExecutionContext context) throws InterruptedException, IOException { if (context == null) { throw new IllegalArgumentException("context must not be null"); } return new LoggingExecutionMonitor(context, stepUnit); }  @Override PhaseMonitor newInstance(ExecutionContext context); }
BasicMonitorProvider extends ExecutionMonitorProvider { @Override public PhaseMonitor newInstance(ExecutionContext context) throws InterruptedException, IOException { if (context == null) { throw new IllegalArgumentException("context must not be null"); } return new LoggingExecutionMonitor(context, stepUnit); }  @Override PhaseMonitor newInstance(ExecutionContext context); static final String KEY_STEP_UNIT; }