tck/src/main/java/org/apache/jdo/tck/query/jdoql/operators/ConditionalAND.java [54:83]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void testPositive1() {
    if (debug) logger.debug("\nExecuting test ConditionalAND() ...");

    PersistenceManager pm = getPMF().getPersistenceManager();
    Transaction tx = pm.currentTransaction();
    try {
      tx.begin();
      List<PrimitiveTypes> instance9 = pm.newQuery(PrimitiveTypes.class, "id == 9").executeList();

      // case boolean && boolean
      runSimplePrimitiveTypesQuery(
          "intNotNull == 9 && booleanNotNull", pm, instance9, ASSERTION_FAILED);
      // case boolean && Boolean
      runSimplePrimitiveTypesQuery(
          "intNotNull == 9 && booleanNull", pm, instance9, ASSERTION_FAILED);
      // case Boolean && boolean
      runSimplePrimitiveTypesQuery(
          "booleanNull && intNotNull == 9", pm, instance9, ASSERTION_FAILED);
      // case Boolean parameter
      runParameterPrimitiveTypesQuery(
          "param && id == 9", "Boolean param", Boolean.TRUE, pm, instance9, ASSERTION_FAILED);
      // case boolean parameter
      runParameterPrimitiveTypesQuery(
          "param && id == 9", "boolean param", Boolean.TRUE, pm, instance9, ASSERTION_FAILED);

      tx.commit();
    } finally {
      cleanupPM(pm);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tck/src/main/java/org/apache/jdo/tck/query/jdoql/operators/BooleanLogicalAND.java [55:84]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void testPositive1() {
    if (debug) logger.debug("\nExecuting positive test BooleanLogicalAND() ...");

    PersistenceManager pm = getPMF().getPersistenceManager();
    Transaction tx = pm.currentTransaction();
    try {
      tx.begin();
      List<PrimitiveTypes> instance9 = pm.newQuery(PrimitiveTypes.class, "id == 9").executeList();

      // case boolean & boolean
      runSimplePrimitiveTypesQuery(
          "intNotNull == 9 & booleanNotNull", pm, instance9, ASSERTION_FAILED);
      // case boolean & Boolean
      runSimplePrimitiveTypesQuery(
          "intNotNull == 9 & booleanNull", pm, instance9, ASSERTION_FAILED);
      // case Boolean & boolean
      runSimplePrimitiveTypesQuery(
          "booleanNull & intNotNull == 9", pm, instance9, ASSERTION_FAILED);
      // case Boolean parameter
      runParameterPrimitiveTypesQuery(
          "param & id == 9", "Boolean param", Boolean.TRUE, pm, instance9, ASSERTION_FAILED);
      // case boolean parameter
      runParameterPrimitiveTypesQuery(
          "param & id == 9", "boolean param", Boolean.TRUE, pm, instance9, ASSERTION_FAILED);

      tx.commit();
    } finally {
      cleanupPM(pm);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



