Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-854

Testing examples with TestNG plugin fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Major Major
    • 2.1.1
    • 2.1.0
    • seam
    • None

      The bug is present in N200908281758-H140 build (the same result on windows and linux)

      When testing examples from seam with TestNG plugin in JBDS the test always throws java.lang.AssertionError.

      For example: in the booking example when running BookingTest.java with TestNG plugin, the test ends up with:
      FAILED: testBookHotel
      java.lang.AssertionError: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'hotelSearch' resolved to null
      at org.jboss.seam.mock.AbstractSeamTest$Request.onException(AbstractSeamTest.java:455)
      at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:504)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
      at org.jboss.seam.mock.AbstractSeamTest$FacesRequest.run(AbstractSeamTest.java:862)
      at org.jboss.seam.example.booking.test.BookingTest.testBookHotel(BookingTest.java:66)
      Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'hotelSearch' resolved to null
      at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
      at org.jboss.el.parser.AstValue.setValue(AstValue.java:83)
      at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
      at org.jboss.seam.mock.AbstractSeamTest$Request.setValue(AbstractSeamTest.java:430)
      at org.jboss.seam.example.booking.test.BookingTest$2.updateModelValues(BookingTest.java:47)
      at org.jboss.seam.mock.AbstractSeamTest$Request.updateModelValuesPhase(AbstractSeamTest.java:670)
      at org.jboss.seam.mock.AbstractSeamTest$Request.emulateJsfLifecycle(AbstractSeamTest.java:592)
      at org.jboss.seam.mock.AbstractSeamTest$Request.access$100(AbstractSeamTest.java:177)
      at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:497)
      ... 37 more
      ... Removed 22 stack frames

      Another example: seam todo example ends up with:
      FAILED: testTodo
      java.lang.AssertionError: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'login' resolved to null
      at org.jboss.seam.mock.AbstractSeamTest$Request.onException(AbstractSeamTest.java:455)
      at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:504)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
      at org.jboss.seam.mock.AbstractSeamTest$FacesRequest.run(AbstractSeamTest.java:862)
      at org.jboss.seam.example.todo.test.TodoTest.testTodo(TodoTest.java:42)
      Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'login' resolved to null
      at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
      at org.jboss.el.parser.AstValue.setValue(AstValue.java:83)
      at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
      at org.jboss.seam.mock.AbstractSeamTest$Request.setValue(AbstractSeamTest.java:430)
      at org.jboss.seam.example.todo.test.TodoTest$1.updateModelValues(TodoTest.java:26)
      at org.jboss.seam.mock.AbstractSeamTest$Request.updateModelValuesPhase(AbstractSeamTest.java:670)
      at org.jboss.seam.mock.AbstractSeamTest$Request.emulateJsfLifecycle(AbstractSeamTest.java:592)
      at org.jboss.seam.mock.AbstractSeamTest$Request.access$100(AbstractSeamTest.java:177)
      at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:497)
      ... 37 more
      ... Removed 22 stack frames

      Last example: seambay example ends up with:
      FAILED: testCreateAuction
      java.lang.AssertionError
      at org.jboss.seam.example.seambay.test.AuctionTest$1.invokeApplication(AuctionTest.java:26)
      at org.jboss.seam.mock.AbstractSeamTest$Request.invokeApplicationPhase(AbstractSeamTest.java:646)
      at org.jboss.seam.mock.AbstractSeamTest$Request.emulateJsfLifecycle(AbstractSeamTest.java:595)
      at org.jboss.seam.mock.AbstractSeamTest$Request.access$100(AbstractSeamTest.java:177)
      at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:497)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
      at org.jboss.seam.mock.AbstractSeamTest$FacesRequest.run(AbstractSeamTest.java:862)
      at org.jboss.seam.example.seambay.test.AuctionTest.testCreateAuction(AuctionTest.java:28)
      ... Removed 22 stack frames

              manderse@redhat.com Max Andersen
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: