Examples of EqualityMatchingRule


Examples of org.nasutekds.server.api.EqualityMatchingRule

  @Test(dataProvider= "exactRuleData")
  public void testStringPrepNoCaseFold(String value1,
                             String value2, Boolean result) throws Exception
  {
    //Take any caseExact matching rule.
    EqualityMatchingRule rule = new CaseExactIA5EqualityMatchingRule();
    ByteString normalizedValue1 =
      rule.normalizeValue(ByteString.valueOf(value1));
    ByteString normalizedValue2 =
      rule.normalizeValue(ByteString.valueOf(value2));

    Boolean liveResult = rule.areEqual(normalizedValue1, normalizedValue2);
    assertEquals(result, liveResult);
  }
View Full Code Here

Examples of org.nasutekds.server.api.EqualityMatchingRule

  @Test(dataProvider= "caseFoldRuleData")
  public void testStringPrepWithCaseFold(String value1,
                             String value2, Boolean result) throws Exception
  {
    //Take any caseExact matching rule.
    EqualityMatchingRule rule = new CaseIgnoreEqualityMatchingRule();
    ByteString normalizedValue1 =
      rule.normalizeValue(ByteString.valueOf(value1));
    ByteString normalizedValue2 =
      rule.normalizeValue(ByteString.valueOf(value2));

    Boolean liveResult = rule.areEqual(normalizedValue1, normalizedValue2);
    assertEquals(result, liveResult);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.