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