use of org.apache.cxf.clustering.FailoverFeature in project cxf by apache.
the class AbstractFailoverTest method testRandomStrategyWebClient.
@Test
public void testRandomStrategyWebClient() throws Exception {
FailoverFeature feature = getFeature(true, Server.ADDRESS3, Server.ADDRESS2);
strategyTestWebClient(Server.ADDRESS1, feature, Server.ADDRESS3, Server.ADDRESS2, false, true);
}
use of org.apache.cxf.clustering.FailoverFeature in project cxf by apache.
the class AbstractFailoverTest method testSequentialStrategyFailure.
@Test(expected = ProcessingException.class)
public void testSequentialStrategyFailure() throws Exception {
FailoverFeature feature = getFeature(false, "http://localhost:" + NON_PORT + "/non-existent");
strategyTest(Server.ADDRESS1, feature, null, null, false, false, false);
}
use of org.apache.cxf.clustering.FailoverFeature in project cxf by apache.
the class AbstractFailoverTest method testRandomStrategy2.
@Test
public void testRandomStrategy2() throws Exception {
FailoverFeature feature = getFeature(true, Server.ADDRESS2, Server.ADDRESS3);
strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, Server.ADDRESS3, false, true, false);
}
use of org.apache.cxf.clustering.FailoverFeature in project cxf by apache.
the class AbstractFailoverTest method testSequentialStrategy.
@Test
public void testSequentialStrategy() throws Exception {
FailoverFeature feature = getFeature(false, Server.ADDRESS2, Server.ADDRESS3);
strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, null, false, false, false);
}
use of org.apache.cxf.clustering.FailoverFeature in project cxf by apache.
the class AbstractFailoverTest method testRandomStrategy.
@Test
public void testRandomStrategy() throws Exception {
FailoverFeature feature = getFeature(true, Server.ADDRESS2, Server.ADDRESS3);
strategyTest(Server.ADDRESS1, feature, Server.ADDRESS2, Server.ADDRESS3, false, true, true);
}
Aggregations