Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8587

testNG "add library" never completes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • LATER
    • None
    • upstream
    • None
    • Hide

      Adding the following code to an existing SEAM project:
      package org.jboss.seam.example.numberguess.test;

      import org.jboss.seam.core.Manager;
      import org.jboss.seam.pageflow.Pageflow;
      import org.jboss.seam.example.numberguess.NumberGuess;
      import org.jboss.seam.mock.SeamTest;
      import org.testng.annotations.Test;

      public class NumberGuessTest extends SeamTest
      {

      private int guess;

      @Test
      public void testNumberGuessWin() throws Exception
      {
      String id = new NonFacesRequest("/numberGuess.jspx")
      {

      @Override
      protected void renderResponse() throws Exception

      { NumberGuess ng = (NumberGuess) getInstance(NumberGuess.class); assert ng.getMaxGuesses()==10; assert ng.getBiggest()==100; assert ng.getSmallest()==1; assert ng.getCurrentGuess()==null; assert ng.getGuessCount()==0; assert Manager.instance().isLongRunningConversation(); assert Pageflow.instance().getProcessInstance().getRootToken() .getNode().getName().equals("displayGuess"); }

      }.run();

      } }

      Click on the import that fails and choose the solution: Add TestNG library.
      No response.

      The following messages are written to stdout by eclipse after electing to add the library:
      Covering node=Test
      Covering node=org.testng.annotations.Test

      Show
      Adding the following code to an existing SEAM project: package org.jboss.seam.example.numberguess.test; import org.jboss.seam.core.Manager; import org.jboss.seam.pageflow.Pageflow; import org.jboss.seam.example.numberguess.NumberGuess; import org.jboss.seam.mock.SeamTest; import org.testng.annotations.Test; public class NumberGuessTest extends SeamTest { private int guess; @Test public void testNumberGuessWin() throws Exception { String id = new NonFacesRequest("/numberGuess.jspx") { @Override protected void renderResponse() throws Exception { NumberGuess ng = (NumberGuess) getInstance(NumberGuess.class); assert ng.getMaxGuesses()==10; assert ng.getBiggest()==100; assert ng.getSmallest()==1; assert ng.getCurrentGuess()==null; assert ng.getGuessCount()==0; assert Manager.instance().isLongRunningConversation(); assert Pageflow.instance().getProcessInstance().getRootToken() .getNode().getName().equals("displayGuess"); } }.run(); } } Click on the import that fails and choose the solution: Add TestNG library. No response. The following messages are written to stdout by eclipse after electing to add the library: Covering node=Test Covering node=org.testng.annotations.Test

      When trying to add testNG to an existing project that does not have the ability, the "add Library" feature never completes.

            alexeykazakov Alexey Kazakov
            rh-sa-plarsen Peter Larsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: