Search in sources :

Example 21 with FilteringClassLoader

use of com.hazelcast.internal.util.FilteringClassLoader in project hazelcast by hazelcast.

the class DeploymentTest method beforeClass.

@BeforeClass
public static void beforeClass() {
    Config config = smallInstanceConfig();
    config.getJetConfig().setResourceUploadEnabled(true);
    FilteringClassLoader filteringClassLoader = new FilteringClassLoader(singletonList("deployment"), null);
    config.setClassLoader(filteringClassLoader);
    initialize(MEMBER_COUNT, config);
}
Also used : Config(com.hazelcast.config.Config) FilteringClassLoader(com.hazelcast.internal.util.FilteringClassLoader) BeforeClass(org.junit.BeforeClass)

Aggregations

FilteringClassLoader (com.hazelcast.internal.util.FilteringClassLoader)21 Config (com.hazelcast.config.Config)18 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)13 QuickTest (com.hazelcast.test.annotation.QuickTest)13 Test (org.junit.Test)13 UserCodeDeploymentConfig (com.hazelcast.config.UserCodeDeploymentConfig)12 IncrementingEntryProcessor (usercodedeployment.IncrementingEntryProcessor)5 HazelcastInstance (com.hazelcast.core.HazelcastInstance)4 HazelcastSerializationException (com.hazelcast.nio.serialization.HazelcastSerializationException)4 ClientConfig (com.hazelcast.client.config.ClientConfig)3 ClientUserCodeDeploymentConfig (com.hazelcast.client.config.ClientUserCodeDeploymentConfig)2 MapConfig (com.hazelcast.config.MapConfig)2 BeforeClass (org.junit.BeforeClass)2 DomainClassWithInnerClass (usercodedeployment.DomainClassWithInnerClass)2 AttributeConfig (com.hazelcast.config.AttributeConfig)1 CompactSerializationConfig (com.hazelcast.config.CompactSerializationConfig)1 SerializationConfig (com.hazelcast.config.SerializationConfig)1 Data (com.hazelcast.internal.serialization.Data)1 InternalSerializationService (com.hazelcast.internal.serialization.InternalSerializationService)1 DefaultSerializationServiceBuilder (com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder)1