Search in sources :

Example 1 with JetTestInstanceFactory

use of com.hazelcast.jet.JetTestInstanceFactory in project hazelcast-jet by hazelcast.

the class SlowSourceYieldTest method before.

@Before
public void before() {
    factory = new JetTestInstanceFactory();
    instance = factory.newMember();
}
Also used : JetTestInstanceFactory(com.hazelcast.jet.JetTestInstanceFactory) Before(org.junit.Before)

Example 2 with JetTestInstanceFactory

use of com.hazelcast.jet.JetTestInstanceFactory in project hazelcast-jet by hazelcast.

the class ClientDeploymentTest method createCluster.

@Override
protected void createCluster() {
    factory = new JetTestInstanceFactory();
    JetConfig jetConfig = new JetConfig();
    FilteringClassLoader filteringClassLoader = new FilteringClassLoader(singletonList("deployment"), null);
    jetConfig.getHazelcastConfig().setClassLoader(filteringClassLoader);
    factory.newMember(jetConfig);
    client = factory.newClient();
}
Also used : FilteringClassLoader(com.hazelcast.util.FilteringClassLoader) JetConfig(com.hazelcast.jet.config.JetConfig) JetTestInstanceFactory(com.hazelcast.jet.JetTestInstanceFactory)

Example 3 with JetTestInstanceFactory

use of com.hazelcast.jet.JetTestInstanceFactory in project hazelcast-jet by hazelcast.

the class DeploymentTest method createCluster.

@Override
protected void createCluster() {
    factory = new JetTestInstanceFactory();
    instance = factory.newMember();
    JetConfig jetConfig = new JetConfig();
    FilteringClassLoader filteringClassLoader = new FilteringClassLoader(singletonList("deployment"), null);
    jetConfig.getHazelcastConfig().setClassLoader(filteringClassLoader);
    factory.newMember(jetConfig);
}
Also used : FilteringClassLoader(com.hazelcast.util.FilteringClassLoader) JetConfig(com.hazelcast.jet.config.JetConfig) JetTestInstanceFactory(com.hazelcast.jet.JetTestInstanceFactory)

Aggregations

JetTestInstanceFactory (com.hazelcast.jet.JetTestInstanceFactory)3 JetConfig (com.hazelcast.jet.config.JetConfig)2 FilteringClassLoader (com.hazelcast.util.FilteringClassLoader)2 Before (org.junit.Before)1