1 Reply Latest reply: Jan 1, 2012 4:49 AM by Thorsten Nicklaus RSS

    ConfigFilesTestSuite don't create testcase

    Thorsten Nicklaus Newbie

      Hi,

      the folowing class should test the xml files. But after starting the jUnit test, eclipse write this in the console:

       

      ***** cut ******

      start building dynamic suite

        start building dynamic suite for src/main/webapp/WEB-INF/faces-config.xml

        stop building dynamic suite (duration: 0.397 seconds) adding 0 testcases.

        start building dynamic suite for src/main/webapp/WEB-INF/web.xml

        stop building dynamic suite (duration: 0.042 seconds) adding 0 testcases.

      stop building dynamic suite (duration: 0.442 seconds) adding 0 testcases.

      ***** cut ******

      The xml files are correct located. JUnit work for building a test suit, but fail. No error message is printed. What is going wrong?

       

      In Eclipse the jUnit test are like the other one, but without solution! No pro, no error!

       

      This is my test class:

      **** cut ****

      import java.util.*;

      import junit.framework.TestSuite;

      import org.jboss.jsfunit.analysis.ConfigFilesTestSuite;

       

      public class StaticFacesConfigTests extends TestSuite {

                public static TestSuite suite() {

                          TestSuite suite = new TestSuite();

                          suite.setName("xml syntax tests");

       

                          List<String> configFiles = new ArrayList<String>();

                          configFiles.add("src/main/webapp/WEB-INF/faces-config.xml");

                          configFiles.add("src/main/webapp/WEB-INF/web.xml");

       

                          suite.addTest(new ConfigFilesTestSuite("JSF config files")

                                              .getSuite(configFiles));

                          return suite;

                }

      }

      **** cut ****

      Could anybody help?

       

      Greetings

        • 1. Re: ConfigFilesTestSuite don't create testcase
          Thorsten Nicklaus Newbie

          Hi,

          my post is a couple of days ago. I'm realy desperated with this error, because of the reaction in eclipse. I can't see a solution, the test is started. But no reaction from jUnit. Why is that?

           

          My project is created with Maven, dependencies are at the bottom.

           

          Bildschirmfoto 2012-01-01 um 09.54.54.jpg

           

           

          <dependency>

                                        <groupId>org.jboss.jsfunit</groupId>

                                        <artifactId>jboss-jsfunit-core</artifactId>

                                        <version>1.3.0.Final</version>

                                        <scope>compile</scope>

          </dependency>

          <dependency>

                                        <groupId>org.jboss.jsfunit</groupId>

                                        <artifactId>jboss-jsfunit-analysis</artifactId>

                                        <version>1.3.0.Final</version>

                                        <scope>compile</scope>

          </dependency>