mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
08.06.2015 b8c6b80da1cb6118167a934daa480eb381c59e0e
opendj-server-legacy/src/test/java/org/opends/server/controls/MatchedValuesControlTest.java
@@ -227,11 +227,21 @@
      subInitialTestCurrent = null;
      subAnyTestCurrent     = null;
      subFinalTestCurrent   = null;
      if ((i & 0x8) != 0) attTypeCurrent        = attTypeTest;
      if ((i & 0x8) != 0) rawAttTypeTestCurrent = rawAttTypeTest;
      if ((i & 0x4) != 0) subInitialTestCurrent = subInitialTest;
      if ((i & 0x2) != 0) subAnyTestCurrent     = subAnyTest;
      if ((i & 0x1) != 0) subFinalTestCurrent   = subFinalTest;
      if ((i & 0x8) != 0) {
        attTypeCurrent        = attTypeTest;
      }
      if ((i & 0x8) != 0) {
        rawAttTypeTestCurrent = rawAttTypeTest;
      }
      if ((i & 0x4) != 0) {
        subInitialTestCurrent = subInitialTest;
      }
      if ((i & 0x2) != 0) {
        subAnyTestCurrent     = subAnyTest;
      }
      if ((i & 0x1) != 0) {
        subFinalTestCurrent   = subFinalTest;
      }
      if (attTypeCurrent == null)
      {
@@ -716,11 +726,21 @@
      attTypeTestCurrent = null;
      attValueTestCurrent = null ;
      if ((i & 0x4) != 0) attTypeTestCurrent = attTypeTest;
      if ((i & 0x4) != 0) rawAttTypeTestCurrent = rawAttTypeTest;
      if ((i & 0x2) != 0) rawMatchingRuleidTestCurrent = matchingRuleIdTest;
      if ((i & 0x2) != 0) matchingRuleidTestCurrent = matchingRule ;
      if ((i & 0x1) != 0) attValueTestCurrent = attValueTest;
      if ((i & 0x4) != 0) {
        attTypeTestCurrent = attTypeTest;
      }
      if ((i & 0x4) != 0) {
        rawAttTypeTestCurrent = rawAttTypeTest;
      }
      if ((i & 0x2) != 0) {
        rawMatchingRuleidTestCurrent = matchingRuleIdTest;
      }
      if ((i & 0x2) != 0) {
        matchingRuleidTestCurrent = matchingRule ;
      }
      if ((i & 0x1) != 0) {
        attValueTestCurrent = attValueTest;
      }
      boolean exceptionExpected = (attTypeTestCurrent == null)
          || (attValueTestCurrent == null) || (matchingRuleidTestCurrent == null);