public void test() {
    try {
      test1ResultIsTrue = Helper.classIsSubclass(LargeProject.class, null);

    } catch (Exception e) {
      this.e = e;
      throw new TestErrorException(
          "An exception should not have been thrown when checking for status as a subclass when superclass is null.");
    }
  }
Exemplo n.º 2
0
 protected void verify() {
   if (results.size() != expectedResults.size()) {
     throw new TestErrorException("ReportQuery test failed: The result size are different");
   }
   BigDecimal expected =
       (BigDecimal) ((ReportQueryResult) expectedResults.firstElement()).getByIndex(0);
   BigDecimal result =
       (BigDecimal)
           ConversionManager.getDefaultManager()
               .convertObject(
                   ((ReportQueryResult) results.firstElement()).getByIndex(0), BigDecimal.class);
   if (!Helper.compareBigDecimals(expected, result)) {
     throw new TestErrorException(
         "ReportQuery test failed: The results did not match (" + expected + ", " + result + ")");
   }
 }