@Inject public BatchManagerProvider(Configuration configuration){ EnvironmentVariables environmentVariables = configuration.getEnvironmentVariables(); String batchManagerProperty = ThucydidesSystemProperty.THUCYDIDES_BATCH_STRATEGY.from(environmentVariables, BatchStrategy.DIVIDE_EQUALLY.name()); try { batchManager = BatchStrategy.valueOf(batchManagerProperty).instance(environmentVariables); } catch (Exception e) { throw new UnsupportedBatchStrategyException(batchManagerProperty + " is not a supported batch strategy.", e); } }
@Inject public BatchManagerProvider(Configuration configuration){ EnvironmentVariables environmentVariables = configuration.getEnvironmentVariables(); String batchManagerProperty = ThucydidesSystemProperty.THUCYDIDES_BATCH_STRATEGY.from(environmentVariables, BatchStrategy.DIVIDE_EQUALLY.name()); try { batchManager = BatchStrategy.valueOf(batchManagerProperty).instance(environmentVariables); } catch (Exception e) { throw new UnsupportedBatchStrategyException(batchManagerProperty + " is not a supported batch strategy.", e); } }
@Inject public BatchManagerProvider(Configuration configuration){ EnvironmentVariables environmentVariables = configuration.getEnvironmentVariables(); String batchManagerProperty = ThucydidesSystemProperty.THUCYDIDES_BATCH_STRATEGY.from(environmentVariables, BatchStrategy.DIVIDE_EQUALLY.name()); try { batchManager = BatchStrategy.valueOf(batchManagerProperty).instance(environmentVariables); } catch (Exception e) { throw new UnsupportedBatchStrategyException(batchManagerProperty + " is not a supported batch strategy.", e); } }