Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-74

Test fails in GF due to incorrect assumption

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.1.CR1, 1.1.0.Alpha1
    • 1.0.1.CR1
    • Tests
    • None
    • Solaris x86 / JDK 6u16 / GF v3

      The test *.event.observer.enterprise.EnterpriseEventInheritenceTest includes the following assertion:

      egg.getClassesVisited().iterator().next().equals(Farmer.class)

      and the same assertion for the class StockWatcher. The classes Farmer and StockWatcher are stateful EJBs. The EJB container in GF subclasses these to create serializable versions. These new classes are named _Farmer_Serializable and _StockWatcher_Serializable and are therefore different from Farmer and StockWatcher. The assertion above fails in GF as a result.

      The other assertions in the test are fine, but the class equal assertion seems to strong to be portable across containers.

              pmuiratbleepbleep Pete Muir (Inactive)
              spericas_jira Santiago Pericas-Geertsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: