You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/08/03 23:17:17 UTC

svn commit: r982036 - in /myfaces/test/trunk: ./ src/ src/site/ src/site/apt/ test12/ test12/src/main/resources/META-INF/ test12/src/site/ test20/src/main/resources/META-INF/ test20/src/main/resources/META-INF/licenses/

Author: lu4242
Date: Tue Aug  3 21:17:15 2010
New Revision: 982036

URL: http://svn.apache.org/viewvc?rev=982036&view=rev
Log:
MYFACESTEST-10 Create a site for this project in myfaces.apache.org and publish it

Added:
    myfaces/test/trunk/src/
    myfaces/test/trunk/src/site/
    myfaces/test/trunk/src/site/apt/
    myfaces/test/trunk/src/site/apt/index.apt
    myfaces/test/trunk/src/site/site.xml
    myfaces/test/trunk/test12/src/main/resources/META-INF/LICENSE
      - copied unchanged from r982016, myfaces/test/trunk/test12/src/main/resources/META-INF/LICENSE.txt
    myfaces/test/trunk/test12/src/main/resources/META-INF/NOTICE
      - copied unchanged from r982016, myfaces/test/trunk/test12/src/main/resources/META-INF/NOTICE.txt
    myfaces/test/trunk/test20/src/main/resources/META-INF/
    myfaces/test/trunk/test20/src/main/resources/META-INF/LICENSE
    myfaces/test/trunk/test20/src/main/resources/META-INF/NOTICE
    myfaces/test/trunk/test20/src/main/resources/META-INF/licenses/
    myfaces/test/trunk/test20/src/main/resources/META-INF/licenses/facelets-LICENSE.txt
Removed:
    myfaces/test/trunk/test12/src/main/resources/META-INF/LICENSE.txt
    myfaces/test/trunk/test12/src/main/resources/META-INF/NOTICE.txt
    myfaces/test/trunk/test12/src/site/
Modified:
    myfaces/test/trunk/pom.xml
    myfaces/test/trunk/test12/pom.xml

Modified: myfaces/test/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/pom.xml?rev=982036&r1=982035&r2=982036&view=diff
==============================================================================
--- myfaces/test/trunk/pom.xml (original)
+++ myfaces/test/trunk/pom.xml Tue Aug  3 21:17:15 2010
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.myfaces</groupId>
         <artifactId>myfaces</artifactId>
-        <version>7</version>
+        <version>8</version>
     </parent>
     <groupId>org.apache.myfaces.test</groupId>
     <artifactId>myfaces-test-project</artifactId>
@@ -34,7 +34,7 @@
     <url>http://myfaces.apache.org/test</url>
     <issueManagement>
       <system>jira</system>
-      <url>http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10600</url>
+      <url>http://issues.apache.org/jira/browse/MYFACESTEST</url>
     </issueManagement>
     <scm>
       <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/test/trunk</connection>
@@ -83,6 +83,15 @@
       </plugins>
     </build>
     
+    <reporting>
+      <plugins>
+        <plugin>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>2.4</version>
+        </plugin>
+      </plugins>
+    </reporting>
+    
     <pluginRepositories>
         <pluginRepository>
             <id>apache.snapshots</id>

Added: myfaces/test/trunk/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/src/site/apt/index.apt?rev=982036&view=auto
==============================================================================
--- myfaces/test/trunk/src/site/apt/index.apt (added)
+++ myfaces/test/trunk/src/site/apt/index.apt Tue Aug  3 21:17:15 2010
@@ -0,0 +1,285 @@
+ ------
+ Myfaces Test Framework
+ ------
+
+ ~~ Licensed to the Apache Software Foundation (ASF) under one
+ ~~ or more contributor license agreements.  See the NOTICE file
+ ~~ distributed with this work for additional information
+ ~~ regarding copyright ownership.  The ASF licenses this file
+ ~~ to you under the Apache License, Version 2.0 (the
+ ~~ "License"); you may not use this file except in compliance
+ ~~ with the License.  You may obtain a copy of the License at
+ ~~
+ ~~   http://www.apache.org/licenses/LICENSE-2.0
+ ~~
+ ~~ Unless required by applicable law or agreed to in writing,
+ ~~ software distributed under the License is distributed on an
+ ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~~ KIND, either express or implied.  See the License for the
+ ~~ specific language governing permissions and limitations
+ ~~ under the License.
+ 
+
+Myfaces Test Framework Project
+
+  Modern application development processes have embraced the idea of
+  <<unit testing>> as an integral step in creating high quality
+  software.  In the Java world, a popular framework for building and
+  executing such unit tests is the {{{http://junit.org}JUnit}}
+  framework.  It is straightforward for an application developer to
+  create a corresponding <<test case>> class for each class in the
+  application itself, and ensure that the tests contained in the test case
+  get executed as part of the normal application build process.
+
+  One of the advantages of unit testing is that a test case should focus
+  <<only>> on the methods of the class under test, in isolation from
+  related application classes, or APIs provided by any container that the
+  class under test might be installed into at runtime.  But, how do you
+  test an application class that has dependencies on such APIs (such as
+  depending on the Servlet API to provide an <<<HttpServletRequest>>>
+  object representing an incoming HTTP request)?
+
+  A popular answer to this dilemma is to utilize a library of
+  <<mock objects>> -- classes that implement and emulate the container
+  APIs, but still run in the isolated environment of a JUnit test case.
+  Myfaces provides mock object implementations for its own features, as
+  well as features of the underlying container (Servlet
+  and JavaServer Faces) environment.  In addition, convenient base classes
+  are provided to make it very easy to build your own test cases utilizing
+  these mock objects.  This library is used to create unit tests for Myfaces
+  components itself, but it is primarily focused on making it easy to
+  build unit tests for application classes such as
+  <<<ViewController>>>s.
+
+Provided Services
+
+  The Myfaces Test Framework provides mock object libraries, plus base
+  classes for creating your own JUnit <<<TestCase>>>s.
+
+  Mock objects are provided in package <<<org.apache.myfaces.test.mock>>>
+  for the following container APIs:
+  
+   * JavaServer Faces
+  
+   * Servlet
+
+  These mock object classes implement the majority of the functionality
+  defined by the container API Javadocs (although some methods currently
+  throw <<<UnsupportedOperationException>>>). In addition, many
+  of these classes support public methods, outside of the defined API,
+  for configuring the object in a test environment.  For example,
+  <<<MockServletContext>>> includes <<<addInitParameter()>>>
+  and <<<setDocumentRoot()>>> methods, to add context initialization
+  parameters to the set returned via <<<getInitParameter()>>> and
+  <<<getInitParameterNames()>>>, and to establish the base directory
+  for resolving servlet context resources, respectively.
+
+  The <<<org.apache.myfaces.test.base>>> package contains abstract
+  base classes that wire together instances of the various container API
+  mock objects, in a manner similar to the way they would become available
+  at runtime.  The following base classes are available:
+  
+   * <<<AbstractJsfTestCase>>> - Base class for unit tests that
+   require Servlet and JavaServer Faces objects to be available.
+  
+   * <<<AbstractViewControllerTestCase>>> - Extension of
+   <<<AbstractJsfTestCase>>> that also provides convenient
+   utility methods needed to test common scenarios in unit tests for
+   <<<ViewController>>> implementation classes.
+
+  If you use one of these base classes, the <<<setUp()>>> method
+  found there will initialize a set of <<<protected>>> instance
+  variables for the container-managed objects you might need to access.
+  The set of initialized variables includes (variable name and type):
+  
+   * <<<application>>> (<<<MockApplication>>>)
+  
+   * <<<config>>> (<<<MockServletConfig>>>)
+  
+   * <<<externalContext>>> (<<<MockExternalContext>>>)
+   
+   * <<<facesContext>>> (<<<MockFacesContext>>>)
+  
+   * <<<lifecycle>>> (<<<MockLifecycle>>>)
+  
+   * <<<request>>> (<<<MockHttpServletRequest>>>)
+  
+   * <<<response>>> (<<<MockHttpServletResonse>>>)
+  
+   * <<<servletContext>>> (<<<MockServletContext>>>)
+  
+   * <<<session>>> (<<<MockHttpSession>>>)
+
+Using The Test Framework
+
+  The most common scenario for using the Test Framework is to construct
+  test cases for <<<ViewController>>> implementation classes.
+  Because the runtime environment of a <<<ViewController>>> is
+  quite constrained, it is easy to construct isolated unit tests that
+  exercise the methods exposed by a <<<ViewController>>> class.
+
+   [[1]] Create a new Java class <<<SelectTestCase>>>, in a package
+   directory (typically under <<<src/test>>> in your project)
+   that is the same as the package directory for the class you will be
+   testing.  This allows your test case to access package private and
+   protected variables and methods in the class being tested.
+  
+   [[2]] Make sure that the package declaration matches that of the class to
+   be tested (in this case, <<<org.apache.myfaces.usecases.locale>>>.
+   Declare your class to extend <<<AbstractViewControllerTestCase>>>
+   (or, if you are not testing a <<<ViewController>>> implementation,
+   extend <<<AbstractJsfTestCase>>>):
+
++-------------------------------+
+public class SelectTestCase extends AbstractViewControllerTestCase {
+  ...
+}
++-------------------------------+
+
+   [[3]] Create a constructor that takes a <<<String>>> parameter, and
+   passes it to the superclass constructor:
+
++-------------------------------+
+public SelectTestCase(String name) {
+    super(name);
+}
++-------------------------------+
+
+   [[4]] Create a <<<setUp()>>> method and <be sure>
+   to call <<<super.setUp()>>> at the beginning.  This method
+   will be called by JUnit immediately before it executes each
+   test method.
+
++-------------------------------+
+public void setUp() {
+    super.setUp();
+    // Customization will go here
+}
++-------------------------------+
+
+   [[5]] After the call to the superclass <<<setUp()>>> method,
+   perform any other initialization required to execute the tests
+   in this test case.  In our example case, a configuration method
+   on the <<<MockApplication>>> instance will be used to
+   define the default and supported <<<Locale>>>s for this
+   set of tests.  This corresponds to what would happen at runtime,
+   when the JavaServer Faces initialization process used the contents
+   of the <<</WEB-INF/faces-config.xml>>> resource to initialize
+   these values.  In addition, we will create a new instance of the
+   <<<Select>>> class to be tested.  It is important to create
+   a new instance for each test, to ensure that execution of one test
+   does not get influenced by the leftover property settings from a
+   previous test.
+
++-------------------------------+
+public void setUp() {
+    super.setUp();
+
+    // Configure the supported locales for this application
+    List list = new ArrayList();
+    list.add(new Locale("en"));
+    list.add(new Locale("fr"));
+    list.add(new Locale("de"));
+    list.add(new Locale("es"));
+    application.setSupportedLocales(list);
+
+    // Construct a new ViewController instance
+    vc = new Select();
+
+}
++-------------------------------+
+
+   [[6]] Create a <<<tearDown()>>> method that cleans up any custom
+   variables you allocated in your <<<setUp()>>> method, and
+   then calls the <<<super.tearDown()>>> method.  This will be
+   called by JUnit after each test is executed.
+
++-------------------------------+
+
+public void tearDown() {
+    vc = null;
+    super.tearDown();
+}
+
++-------------------------------+
+
+   [[7]] Declare the custom instance variable(s) that you are setting up
+   in your <<<setUp()>>> method.  In this case, we create an
+   instance of the <<<ViewController>>> class to be tested.
+   A new instance will be created (via a call from JUnit to the
+   <<<setUp()>>> method) before each test method is executed.
+
++-------------------------------+
+// The instance to be tested
+Select vc = null;
++-------------------------------+
+
+   [[8]] Create one or more individual test methods (which must be
+   <<<public>>>, return <<<void>>>, take no arguments,
+   and have a method name of the form <<<testXXXX>>>.  For
+   advice on how to construct such methods, consult the
+   {{{http://junit.org/}JUnit Web Site}}, or any of the
+   large number of resources on the web describing how to use JUnit
+   to build unit tests.  The following example tests what happens
+   when the <<<select()>>> method (which is executed when
+   the <<Go>> button is pressed), but the value entered is not
+   one of the valid options.  <NOTE> that the test
+   method must emulate the runtime calls to the <<<ViewController>>>
+   event methods, because there is no actual runtime container
+   available to perform these tasks automatically:
+
++-------------------------------+
+// Test behavior of select() with an invalid value
+public void testSelectInvalid() {
+
+    Locale locale = new Locale("en");
+    facesContext.getViewRoot().setLocale(locale);
+    vc.init();
+    vc.preprocess();
+    vc.setLocale("it");
+    String result = vc.select();
+    assertEquals(Select.FAILURE, result);
+    checkMessageCount(1);
+    assertEquals(locale, facesContext.getViewRoot().getLocale());
+
+}
++-------------------------------+
+
+   The test case sets the <<<locale>>> property (which is
+   bound to a dropdown component at runtime, but we are simulating
+   the behavior of Update Model Values here) to an invalid value,
+   then calls the <<<select()>>> method.  The test then
+   verifies that the logical outcome returned matches that which
+   is expected (<<<Select.FAILURE>>>), that there was an error
+   message queued to be displayed, and that the <<<locale>>>
+   for the current view was <NOT> actually changed.
+
+   [[9]] Finally, integrate the execution of this test case into your
+   build script.  Many IDEs will take care of this for you; however,
+   if you are creating an Ant build script by hand, you might find
+   the <<<test>>> target from the Myfaces Use Cases example
+   a useful starting point.  It locates <<all>> the test cases
+   related to the entire application, and executes them:
+   
++-------------------------------+
+  <target name="test" depends="test.compile"
+   description="Execute unit tests">
+
+    <mkdir          dir="${build.home}/test-results"/>
+
+    <echo       message="Running unit tests ..."/>
+    <junit printSummary="no" fork="yes"
+          haltonfailure="yes" haltonerror="yes">
+      <classpath  refid="test.classpath"/>
+      <formatter   type="plain"
+                usefile="false"/>
+      <formatter   type="xml"
+                usefile="true"/>
+      <batchtest todir="${build.home}/test-results">
+        <fileset    dir="${build.home}/test-classes"
+               includes="org/apache/myfaces/usecases/*/*TestCase.class"/>
+      </batchtest>
+    </junit>
+
+  </target>
++-------------------------------+
\ No newline at end of file

Added: myfaces/test/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/src/site/site.xml?rev=982036&view=auto
==============================================================================
--- myfaces/test/trunk/src/site/site.xml (added)
+++ myfaces/test/trunk/src/site/site.xml Tue Aug  3 21:17:15 2010
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<project name="MyFaces Test Project">
+  <bannerLeft>
+    <name>Apache MyFaces</name>
+    <src>img/banners/MyFaces_logo.jpg</src>
+    <href>http://myfaces.apache.org/index.html</href>
+  </bannerLeft>
+    
+  <bannerRight>
+    <name>Apache Banner</name>
+    <src>img/banners/apache_banner.png</src>
+    <href>http://www.apache.org</href>
+  </bannerRight>
+    
+  <publishDate format="dd MMM yyyy" />
+    
+  <skin>
+    <groupId>org.apache.myfaces.maven</groupId>
+    <artifactId>myfaces-site-skin</artifactId>
+    <version>1-SNAPSHOT</version>
+  </skin>
+
+  <body>
+    <links>
+      <item name="Apache" href="http://www.apache.org"/>
+      <item name="MyFaces" href="http://myfaces.apache.org/index.html"/>
+    </links>
+  
+    <menu name="Apache MyFaces" inherit="top">
+      <item name="Overview"       href="http://myfaces.apache.org/index.html"/>
+      <item name="Download"       href="http://myfaces.apache.org/download.html"/>
+    </menu>
+
+    <menu ref="modules" inherit="top"/>
+
+    <menu name="Documentation" inherit="top">
+      <item name="About"         href="index.html"/>
+      <item name="1.2 Javadocs" href="myfaces-test12/apidocs/index.html"/>
+      <item name="2.0 Javadocs" href="myfaces-test20/apidocs/index.html"/>
+    </menu>
+
+    <menu ref="reports" inherit="top"/>
+
+    <menu name="Foundation" inherit="top">
+      <item name="ASF"            href="http://www.apache.org/" />
+      <item name="Sponsorship"    href="http://www.apache.org/foundation/sponsorship.html" />
+      <item name="Thanks"         href="http://www.apache.org/foundation/thanks.html" />
+    </menu>
+  </body>
+</project>

Modified: myfaces/test/trunk/test12/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/pom.xml?rev=982036&r1=982035&r2=982036&view=diff
==============================================================================
--- myfaces/test/trunk/test12/pom.xml (original)
+++ myfaces/test/trunk/test12/pom.xml Tue Aug  3 21:17:15 2010
@@ -29,7 +29,7 @@
 
     <artifactId>myfaces-test12</artifactId>
     <packaging>jar</packaging>
-    <name>Myfaces Test Framework for JSF 1.1 and 1.2</name>
+    <name>Myfaces Test Framework for JSF 1.2</name>
 
     <dependencies>
 

Added: myfaces/test/trunk/test20/src/main/resources/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/resources/META-INF/LICENSE?rev=982036&view=auto
==============================================================================
--- myfaces/test/trunk/test20/src/main/resources/META-INF/LICENSE (added)
+++ myfaces/test/trunk/test20/src/main/resources/META-INF/LICENSE Tue Aug  3 21:17:15 2010
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

Added: myfaces/test/trunk/test20/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/resources/META-INF/NOTICE?rev=982036&view=auto
==============================================================================
--- myfaces/test/trunk/test20/src/main/resources/META-INF/NOTICE (added)
+++ myfaces/test/trunk/test20/src/main/resources/META-INF/NOTICE Tue Aug  3 21:17:15 2010
@@ -0,0 +1,17 @@
+This product includes software developed by:
+The Apache Software Foundation (http://www.apache.org/).
+
+------------------------------------------------------------------------
+See the file LICENSE.txt
+See licenses for accompanying products in the "/licenses" subdirectory.
+------------------------------------------------------------------------
+
+This software also includes code from Facelets (https://facelets.dev.java.net/)
+
+This software also includes code from Apache Shale Test Framework
+
+This software also includes code from Apache Commons Codec
+
+This product contains code written by David Geary and Cay Horstmann
+for the first edition of Core JavaServer Faces. 
+

Added: myfaces/test/trunk/test20/src/main/resources/META-INF/licenses/facelets-LICENSE.txt
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/resources/META-INF/licenses/facelets-LICENSE.txt?rev=982036&view=auto
==============================================================================
--- myfaces/test/trunk/test20/src/main/resources/META-INF/licenses/facelets-LICENSE.txt (added)
+++ myfaces/test/trunk/test20/src/main/resources/META-INF/licenses/facelets-LICENSE.txt Tue Aug  3 21:17:15 2010
@@ -0,0 +1,70 @@
+Apache License, Version 2.0
+
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution.
+
+You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+   1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
+   2. You must cause any modified files to carry prominent notices stating that You changed the files; and
+   3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+   4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions.
+
+Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks.
+
+This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty.
+
+Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability.
+
+In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability.
+
+While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS