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());
}
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);
}
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);
}
Aggregations