use of com.alibaba.dubbo.registry.common.route.RouteRule.MatchPair in project dubbo by alibaba.
the class RouteRuleTest method test_MatchPair_copy.
@org.junit.Test
public void test_MatchPair_copy() throws Exception {
MatchPair copy = pair.copy();
assertEquals(pair, copy);
copy.matches.remove("+a");
assertFalse(pair.equals(copy));
copy = pair.copy();
copy.matches.add("+z");
assertFalse(pair.equals(copy));
}
Aggregations