You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2005/03/10 16:12:22 UTC

cvs commit: jakarta-tapestry/framework/src/test/org/apache/tapestry/junit/mock TestMocks.java

hlship      2005/03/10 07:12:22

  Modified:    portlet  build.xml
               framework/src/test/org/apache/tapestry/junit/mock
                        TestMocks.java
  Added:       portlet  .cvsignore
  Log:
  Add system property for skipping the Mock unit tests.
  
  Revision  Changes    Path
  1.2       +1 -0      jakarta-tapestry/portlet/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/portlet/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	10 Mar 2005 13:24:37 -0000	1.1
  +++ build.xml	10 Mar 2005 15:12:22 -0000	1.2
  @@ -42,6 +42,7 @@
       <ibiblio-dependency artifact="easymock"           version="1.1"                 group="easymock" use="test"/>
       <ibiblio-dependency artifact="easymockclassextension" version="1.1"             group="easymock" use="test"/>
       <ibiblio-dependency artifact="cglib-full"         version="2.0.2"               group="cglib"    use="test"/>
  +    <ibiblio-dependency artifact="log4j"              version="${log4j.version}"    group="log4j"    use="test"/>
         
       <!--
       <ibiblio-dependency artifact="bsf"                version="2.3.0"               group="bsf"/>
  
  
  
  1.1                  jakarta-tapestry/portlet/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  target
  
  
  
  1.3       +10 -3     jakarta-tapestry/framework/src/test/org/apache/tapestry/junit/mock/TestMocks.java
  
  Index: TestMocks.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/test/org/apache/tapestry/junit/mock/TestMocks.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestMocks.java	5 Jan 2005 23:17:30 -0000	1.2
  +++ TestMocks.java	10 Mar 2005 15:12:22 -0000	1.3
  @@ -69,10 +69,17 @@
       {
           TestSuite suite = new TestSuite("Mock Unit Test Suite");
   
  -        addScripts(suite);
  +        if (Boolean.getBoolean("skip-mock-tests"))
  +        {
  +            System.out.println("*** Skipping Mock Unit Test Suite");
  +        }
  +        else
  +        {
  +            addScripts(suite);
   
  -        // Handy place to perform one-time
  -        deleteDir(getBaseDirectory() + "/target/.private");
  +            // Handy place to perform one-time
  +            deleteDir(getBaseDirectory() + "/target/.private");
  +        }
   
           return suite;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org