Search in sources :

Example 6 with MimeTypeMapperImpl

use of ddf.mime.mapper.MimeTypeMapperImpl in project ddf by codice.

the class ResourceOperationsTest method setUpFrameworkProperties.

private void setUpFrameworkProperties() {
    frameworkProperties = new FrameworkProperties();
    frameworkProperties.setAccessPlugins(new ArrayList<>());
    frameworkProperties.setPolicyPlugins(new ArrayList<>());
    frameworkProperties.setSourcePoller(mockPoller);
    frameworkProperties.setPostResource(mockPostResourcePlugins);
    frameworkProperties.setFederationStrategy(mockFederationStrategy);
    frameworkProperties.setFilterBuilder(new GeotoolsFilterBuilder());
    frameworkProperties.setPreIngest(new ArrayList<>());
    frameworkProperties.setPostIngest(postIngestPlugins);
    frameworkProperties.setPreQuery(new ArrayList<>());
    frameworkProperties.setPostQuery(new ArrayList<>());
    frameworkProperties.setPreResource(new ArrayList<>());
    frameworkProperties.setPostResource(new ArrayList<>());
    frameworkProperties.setQueryResponsePostProcessor(mock(QueryResponsePostProcessor.class));
    frameworkProperties.setStorageProviders(Collections.singletonList(storageProvider));
    frameworkProperties.setMimeTypeMapper(new MimeTypeMapperImpl(Collections.singletonList(mimeTypeResolver)));
    frameworkProperties.setMimeTypeToTransformerMapper(mimeTypeToTransformerMapper);
    frameworkProperties.setValidationQueryFactory(new ValidationQueryFactory(new GeotoolsFilterAdapterImpl(), new GeotoolsFilterBuilder()));
}
Also used : FrameworkProperties(ddf.catalog.impl.FrameworkProperties) GeotoolsFilterBuilder(ddf.catalog.filter.proxy.builder.GeotoolsFilterBuilder) ValidationQueryFactory(ddf.catalog.cache.solr.impl.ValidationQueryFactory) MimeTypeMapperImpl(ddf.mime.mapper.MimeTypeMapperImpl) GeotoolsFilterAdapterImpl(ddf.catalog.filter.proxy.adapter.GeotoolsFilterAdapterImpl) QueryResponsePostProcessor(ddf.catalog.impl.QueryResponsePostProcessor)

Aggregations

MimeTypeMapperImpl (ddf.mime.mapper.MimeTypeMapperImpl)6 ValidationQueryFactory (ddf.catalog.cache.solr.impl.ValidationQueryFactory)4 GeotoolsFilterAdapterImpl (ddf.catalog.filter.proxy.adapter.GeotoolsFilterAdapterImpl)4 GeotoolsFilterBuilder (ddf.catalog.filter.proxy.builder.GeotoolsFilterBuilder)4 FrameworkProperties (ddf.catalog.impl.FrameworkProperties)3 QueryResponsePostProcessor (ddf.catalog.impl.QueryResponsePostProcessor)3 MimeTypeResolver (ddf.mime.MimeTypeResolver)3 Before (org.junit.Before)3 ArrayList (java.util.ArrayList)2 ByteSource (com.google.common.io.ByteSource)1 MockMemoryStorageProvider (ddf.catalog.content.impl.MockMemoryStorageProvider)1 Metacard (ddf.catalog.data.Metacard)1 Result (ddf.catalog.data.Result)1 DefaultAttributeValueRegistryImpl (ddf.catalog.data.defaultvalues.DefaultAttributeValueRegistryImpl)1 AttributeRegistryImpl (ddf.catalog.data.impl.AttributeRegistryImpl)1 MetacardImpl (ddf.catalog.data.impl.MetacardImpl)1 AttributeInjectorImpl (ddf.catalog.data.inject.AttributeInjectorImpl)1 FederationStrategy (ddf.catalog.federation.FederationStrategy)1 Historian (ddf.catalog.history.Historian)1 CreateOperations (ddf.catalog.impl.operations.CreateOperations)1