Search in sources :

Example 21 with HazelcastInternalOSGiService

use of com.hazelcast.osgi.impl.HazelcastInternalOSGiService in project hazelcast by hazelcast.

the class HazelcastOSGiServiceTest method groupNameIsSetToDefaultGroupNameOfBundleWhenConfigIsGivenWithoutSpecifiedGroupConfigAndGroupingIsNotDisabled.

@Test
public void groupNameIsSetToDefaultGroupNameOfBundleWhenConfigIsGivenWithoutSpecifiedGroupConfigAndGroupingIsNotDisabled() {
    Config config = new Config();
    HazelcastInternalOSGiService service = getService();
    HazelcastOSGiInstance osgiInstance = service.newHazelcastInstance(config);
    assertEquals(HazelcastInternalOSGiService.DEFAULT_GROUP_NAME, osgiInstance.getConfig().getGroupConfig().getName());
    HazelcastInstance instance = osgiInstance.getDelegatedInstance();
    assertEquals(HazelcastInternalOSGiService.DEFAULT_GROUP_NAME, instance.getConfig().getGroupConfig().getName());
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) Config(com.hazelcast.config.Config) GroupConfig(com.hazelcast.config.GroupConfig) HazelcastInternalOSGiService(com.hazelcast.osgi.impl.HazelcastInternalOSGiService) Test(org.junit.Test) SlowTest(com.hazelcast.test.annotation.SlowTest)

Example 22 with HazelcastInternalOSGiService

use of com.hazelcast.osgi.impl.HazelcastInternalOSGiService in project hazelcast by hazelcast.

the class HazelcastOSGiServiceTest method newInstanceRetrievedSuccessfullyWithoutConfiguration.

@Test
public void newInstanceRetrievedSuccessfullyWithoutConfiguration() {
    HazelcastInternalOSGiService service = getService();
    HazelcastOSGiInstance osgiInstance = service.newHazelcastInstance();
    assertNotNull(osgiInstance);
    HazelcastInstance instance = osgiInstance.getDelegatedInstance();
    assertNotNull(instance);
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) HazelcastInternalOSGiService(com.hazelcast.osgi.impl.HazelcastInternalOSGiService) Test(org.junit.Test) SlowTest(com.hazelcast.test.annotation.SlowTest)

Example 23 with HazelcastInternalOSGiService

use of com.hazelcast.osgi.impl.HazelcastInternalOSGiService in project hazelcast by hazelcast.

the class HazelcastOSGiServiceTest method serviceRetrievedSuccessfully.

@Test
public void serviceRetrievedSuccessfully() {
    HazelcastInternalOSGiService service = getService();
    assertNotNull(service);
}
Also used : HazelcastInternalOSGiService(com.hazelcast.osgi.impl.HazelcastInternalOSGiService) Test(org.junit.Test) SlowTest(com.hazelcast.test.annotation.SlowTest)

Aggregations

HazelcastInternalOSGiService (com.hazelcast.osgi.impl.HazelcastInternalOSGiService)23 SlowTest (com.hazelcast.test.annotation.SlowTest)23 Test (org.junit.Test)23 HazelcastInstance (com.hazelcast.core.HazelcastInstance)13 Config (com.hazelcast.config.Config)11 GroupConfig (com.hazelcast.config.GroupConfig)11 HashSet (java.util.HashSet)3