use of org.junit.BeforeClass in project hazelcast by hazelcast.
the class MapReadWriteQuorumTest method initialize.
@BeforeClass
public static void initialize() throws Exception {
QuorumConfig quorumConfig = new QuorumConfig();
quorumConfig.setName(QUORUM_ID);
quorumConfig.setEnabled(true);
quorumConfig.setSize(3);
MapConfig mapConfig = new MapConfig(MAP_NAME_PREFIX + "*");
mapConfig.setQuorumName(QUORUM_ID);
cluster = new PartitionedCluster(new TestHazelcastInstanceFactory()).partitionFiveMembersThreeAndTwo(mapConfig, quorumConfig);
}
use of org.junit.BeforeClass in project hazelcast by hazelcast.
the class MapWriteQuorumTest method initialize.
@BeforeClass
public static void initialize() throws Exception {
QuorumConfig quorumConfig = new QuorumConfig();
quorumConfig.setName(QUORUM_ID);
quorumConfig.setEnabled(true);
quorumConfig.setType(QuorumType.WRITE);
quorumConfig.setSize(3);
MapConfig mapConfig = new MapConfig(MAP_NAME_PREFIX + "*");
mapConfig.setQuorumName(QUORUM_ID);
cluster = new PartitionedCluster(new TestHazelcastInstanceFactory()).partitionFiveMembersThreeAndTwo(mapConfig, quorumConfig);
}
use of org.junit.BeforeClass in project hazelcast by hazelcast.
the class TransactionalMapReadQuorumTest method initialize.
@BeforeClass
public static void initialize() throws Exception {
QuorumConfig quorumConfig = new QuorumConfig();
quorumConfig.setEnabled(true);
quorumConfig.setSize(3);
quorumConfig.setName(QUORUM_ID);
quorumConfig.setType(QuorumType.READ);
MapConfig mapConfig = new MapConfig(MAP_NAME_PREFIX + "*");
mapConfig.setQuorumName(QUORUM_ID);
cluster = new PartitionedCluster(new TestHazelcastInstanceFactory()).partitionFiveMembersThreeAndTwo(mapConfig, quorumConfig);
}
use of org.junit.BeforeClass in project camel by apache.
the class SoapToSoapDontIgnoreTest method setup.
@BeforeClass
public static void setup() {
namespacePrefixMap = new HashMap<String, String>();
namespacePrefixMap.put("http://schemas.xmlsoap.org/soap/envelope/", "soap");
namespacePrefixMap.put("http://www.w3.org/2001/XMLSchema", "xsd");
namespacePrefixMap.put("http://www.w3.org/2001/XMLSchema-instance", "xsi");
namespacePrefixMap.put("http://www.example.com/contact", "cont");
namespacePrefixMap.put("http://www.example.com/soapheaders", "custom");
soapjaxbModel = new SoapJaxbDataFormat("com.example.contact:com.example.soapheaders");
soapjaxbModel.setNamespacePrefix(namespacePrefixMap);
soapjaxbModel.setPrettyPrint(true);
soapjaxbModel.setIgnoreUnmarshalledHeaders(false);
soapjaxbModel.setIgnoreJAXBElement(false);
soapjaxbModel.setElementNameStrategy(new TypeNameStrategy());
soapjaxbModelDontIgnoreUnmarshalled = new SoapJaxbDataFormat("com.example.contact:com.example.soapheaders");
soapjaxbModelDontIgnoreUnmarshalled.setNamespacePrefix(namespacePrefixMap);
soapjaxbModelDontIgnoreUnmarshalled.setPrettyPrint(true);
soapjaxbModelDontIgnoreUnmarshalled.setIgnoreUnmarshalledHeaders(false);
soapjaxbModelDontIgnoreUnmarshalled.setElementNameStrategy(new TypeNameStrategy());
}
use of org.junit.BeforeClass in project camel by apache.
the class SoapToSoapIgnoreTest method setup.
@BeforeClass
public static void setup() {
namespacePrefixMap = new HashMap<String, String>();
namespacePrefixMap.put("http://schemas.xmlsoap.org/soap/envelope/", "soap");
namespacePrefixMap.put("http://www.w3.org/2001/XMLSchema", "xsd");
namespacePrefixMap.put("http://www.w3.org/2001/XMLSchema-instance", "xsi");
namespacePrefixMap.put("http://www.example.com/contact", "cont");
namespacePrefixMap.put("http://www.example.com/soapheaders", "custom");
soapjaxbModel = new SoapJaxbDataFormat("com.example.contact:com.example.soapheaders");
soapjaxbModel.setNamespacePrefix(namespacePrefixMap);
soapjaxbModel.setPrettyPrint(true);
soapjaxbModel.setIgnoreUnmarshalledHeaders(false);
soapjaxbModel.setIgnoreJAXBElement(false);
soapjaxbModel.setElementNameStrategy(new TypeNameStrategy());
soapjaxbModelIgnoreUnmarshalled = new SoapJaxbDataFormat("com.example.contact:com.example.soapheaders");
soapjaxbModelIgnoreUnmarshalled.setNamespacePrefix(namespacePrefixMap);
soapjaxbModelIgnoreUnmarshalled.setPrettyPrint(true);
soapjaxbModelIgnoreUnmarshalled.setIgnoreUnmarshalledHeaders(true);
soapjaxbModelIgnoreUnmarshalled.setElementNameStrategy(new TypeNameStrategy());
}
Aggregations