Search in sources :

Example 1 with GeoWaveTestStore

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;
}
Also used : GeoWaveStoreType(org.locationtech.geowave.test.annotation.GeoWaveTestStore.GeoWaveStoreType) ArrayList(java.util.ArrayList) GeoWaveTestStore(org.locationtech.geowave.test.annotation.GeoWaveTestStore)

Aggregations

ArrayList (java.util.ArrayList)1 GeoWaveTestStore (org.locationtech.geowave.test.annotation.GeoWaveTestStore)1 GeoWaveStoreType (org.locationtech.geowave.test.annotation.GeoWaveTestStore.GeoWaveStoreType)1