use of org.talend.mdm.repository.core.hash.routingrule.EObjRoutingRuleHVCalculator in project tmdm-studio-se by Talend.
the class RoutingRuleTest method testHash.
@Test
public void testHash() {
IHashValueCalculator wsCalculator = new WSRoutingRuleHVCalculator();
IHashValueCalculator eobjCalculator = new EObjRoutingRuleHVCalculator();
WSRoutingRule wsRule = initWSObject();
WSRoutingRuleE eobjRule = initEObjRule();
long wsHash = wsCalculator.calculateHash(wsRule);
long eobjHash = eobjCalculator.calculateHash(eobjRule);
assertEquals(wsHash, eobjHash);
}
Aggregations