Search in sources :

Example 1 with SimpleTransactionControlFilter

use of org.apache.servicecomb.loadbalance.filter.SimpleTransactionControlFilter in project incubator-servicecomb-java-chassis by apache.

the class TestLoadBalancer method testFilter.

@Test
public void testFilter() {
    Assert.assertEquals(0, loadBalancer.getFilterSize());
    TransactionControlFilter filter = new SimpleTransactionControlFilter();
    loadBalancer.putFilter("test", filter);
    Assert.assertEquals(1, loadBalancer.getFilterSize());
}
Also used : SimpleTransactionControlFilter(org.apache.servicecomb.loadbalance.filter.SimpleTransactionControlFilter) TransactionControlFilter(org.apache.servicecomb.loadbalance.filter.TransactionControlFilter) SimpleTransactionControlFilter(org.apache.servicecomb.loadbalance.filter.SimpleTransactionControlFilter) Test(org.junit.Test)

Aggregations

SimpleTransactionControlFilter (org.apache.servicecomb.loadbalance.filter.SimpleTransactionControlFilter)1 TransactionControlFilter (org.apache.servicecomb.loadbalance.filter.TransactionControlFilter)1 Test (org.junit.Test)1