Search in sources :

Example 1 with IHashValueCalculator

use of org.talend.mdm.commmon.util.hash.IHashValueCalculator 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);
}
Also used : WSRoutingRuleHVCalculator(org.talend.mdm.repository.core.hash.routingrule.WSRoutingRuleHVCalculator) IHashValueCalculator(org.talend.mdm.commmon.util.hash.IHashValueCalculator) EObjRoutingRuleHVCalculator(org.talend.mdm.repository.core.hash.routingrule.EObjRoutingRuleHVCalculator) WSRoutingRule(com.amalto.workbench.webservices.WSRoutingRule) WSRoutingRuleE(org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleE) Test(org.junit.Test)

Aggregations

WSRoutingRule (com.amalto.workbench.webservices.WSRoutingRule)1 Test (org.junit.Test)1 IHashValueCalculator (org.talend.mdm.commmon.util.hash.IHashValueCalculator)1 EObjRoutingRuleHVCalculator (org.talend.mdm.repository.core.hash.routingrule.EObjRoutingRuleHVCalculator)1 WSRoutingRuleHVCalculator (org.talend.mdm.repository.core.hash.routingrule.WSRoutingRuleHVCalculator)1 WSRoutingRuleE (org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleE)1