Search in sources :

Example 16 with MapAttributeConfig

use of com.hazelcast.config.MapAttributeConfig in project hazelcast by hazelcast.

the class ExtractorHelperTest method instantiate_extractor_notExistingClass.

@Test
public void instantiate_extractor_notExistingClass() {
    // GIVEN
    MapAttributeConfig config = new MapAttributeConfig("iq", "not.existing.class");
    // EXPECT
    expected.expect(IllegalArgumentException.class);
    expected.expectCause(isA(ClassNotFoundException.class));
    // WHEN
    instantiateExtractor(config);
}
Also used : MapAttributeConfig(com.hazelcast.config.MapAttributeConfig) Test(org.junit.Test)

Example 17 with MapAttributeConfig

use of com.hazelcast.config.MapAttributeConfig in project hazelcast by hazelcast.

the class NestedPredicateWithExtractorTest method extractor.

private static MapAttributeConfig extractor(String name, String extractor) {
    MapAttributeConfig extractorConfig = new MapAttributeConfig();
    extractorConfig.setName(name);
    extractorConfig.setExtractor(extractor);
    return extractorConfig;
}
Also used : MapAttributeConfig(com.hazelcast.config.MapAttributeConfig)

Aggregations

MapAttributeConfig (com.hazelcast.config.MapAttributeConfig)17 Test (org.junit.Test)12 Config (com.hazelcast.config.Config)5 MapConfig (com.hazelcast.config.MapConfig)5 ValueExtractor (com.hazelcast.query.extractor.ValueExtractor)3 EntryListenerConfig (com.hazelcast.config.EntryListenerConfig)1 MapIndexConfig (com.hazelcast.config.MapIndexConfig)1 MapPartitionLostListenerConfig (com.hazelcast.config.MapPartitionLostListenerConfig)1 MapStoreConfig (com.hazelcast.config.MapStoreConfig)1 MultiMapConfig (com.hazelcast.config.MultiMapConfig)1 NearCacheConfig (com.hazelcast.config.NearCacheConfig)1 ReplicatedMapConfig (com.hazelcast.config.ReplicatedMapConfig)1 WanReplicationRef (com.hazelcast.config.WanReplicationRef)1 DefaultPortableReaderQuickTest (com.hazelcast.nio.serialization.impl.DefaultPortableReaderQuickTest)1 ComplexDataStructure (com.hazelcast.query.impl.extractor.specification.ComplexDataStructure)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Setup (org.openjdk.jmh.annotations.Setup)1