use of org.locationtech.geowave.test.annotation.GeoWaveTestStore in project geowave by locationtech.
the class GeoWaveITRunner method addRunnerConfigsForField.
private static List<GeoWaveStoreRunnerConfig> addRunnerConfigsForField(final FrameworkField field, final List<GeoWaveStoreRunnerConfig> currentConfigs, final Set<GeoWaveStoreType> storeTypes) throws GeoWaveITException {
final GeoWaveTestStore store = field.getField().getAnnotation(GeoWaveTestStore.class);
final GeoWaveStoreType[] types = store.value();
if ((types == null) || (types.length == 0)) {
throw new GeoWaveITException(MessageFormat.format("{0} must have at least one GeoWaveStoreType", field.getName()));
}
final List<GeoWaveStoreRunnerConfig> newConfigs = new ArrayList<>();
for (final GeoWaveStoreRunnerConfig config : currentConfigs) {
for (final GeoWaveStoreType type : types) {
newConfigs.add(new GeoWaveStoreRunnerConfig(config, field.getName(), type));
storeTypes.add(type);
}
}
return newConfigs;
}
Aggregations