tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/lib Properties.html
Date Sun, 23 Mar 2003 01:27:51 GMT
hlship      2003/03/22 17:27:51

  Modified:    junit/src/org/apache/tapestry/junit/parse
                        TestSpecificationParser.java ListenerBinding.page
               junit/src log4j-slow.properties log4j.properties
               junit/mock-scripts TestLibrary.xml
               junit/src/org/apache/tapestry/junit/utils
                        TestPropertyFinder.java
               junit/src/org/apache/tapestry/junit MockEngine.java
                        MockPage.java
               junit/src/org/apache/tapestry/junit/mock/lib Properties.html
  Added:       junit/context22 README Home.html Two.html Three.html
               junit/context22/WEB-INF app.application NoTemplate.jwc
                        Home.page
               junit/src/org/apache/tapestry/junit/mock/c22
                        DummyTemplateDelegate.java DummySpecDelegate.java
               junit/mock-scripts TestSpecDelegate.xml
  Log:
  Add new extensions for locating page and component specifications and templates (when not
found by the standard rules).
  
  Revision  Changes    Path
  1.4       +3 -2      jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/TestSpecificationParser.java
  
  Index: TestSpecificationParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/TestSpecificationParser.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestSpecificationParser.java	21 Mar 2003 19:00:54 -0000	1.3
  +++ TestSpecificationParser.java	23 Mar 2003 01:27:51 -0000	1.4
  @@ -217,7 +217,7 @@
           checkList(
               "componentAliases",
               new String[] { "FirstComponent", "SecondComponent" },
  -            spec.getComponentAliases());
  +            spec.getComponentTypes());
   
           checkList("libraryIds", new String[] { "lib1", "lib2" }, spec.getLibraryIds());
       }
  @@ -540,6 +540,7 @@
           String expectedScript =
               buildExpectedScript(
                   new String[] {
  +                	"",
                       "if page.isFormInputValid():",
                       "  cycle.page = \"Results\"",
                       "else:",
  
  
  
  1.2       +2 -3      jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/ListenerBinding.page
  
  Index: ListenerBinding.page
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/ListenerBinding.page,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ListenerBinding.page	5 Mar 2003 23:19:37 -0000	1.1
  +++ ListenerBinding.page	23 Mar 2003 01:27:51 -0000	1.2
  @@ -11,8 +11,7 @@
   if page.isFormInputValid():
     cycle.page = "Results"
   else:
  -  page.message = "Please fix errors before continuing.";  
  -	</listener-binding>
  +  page.message = "Please fix errors before continuing.";</listener-binding>
     </component>
     	  	
   </page-specification>
  
  
  
  1.1                  jakarta-tapestry/junit/context22/README
  
  Index: README
  ===================================================================
  See TestSpecDelegate.xml
  
  
  
  1.1                  jakarta-tapestry/junit/context22/Home.html
  
  Index: Home.html
  ===================================================================
  <html jwcid="@Shell" title="Home">
  <body>
  	
  <a href="#" jwcid="start">Start</a>
  
  </body>
  </html>
  
  
  1.1                  jakarta-tapestry/junit/context22/Two.html
  
  Index: Two.html
  ===================================================================
  <html jwcid="@Shell" title="Two">
  <body>
  	
  Test for unknown component.
  
  <span jwcid="@Unknown"/>
  	
  </body>
  </html>
  
  
  1.1                  jakarta-tapestry/junit/context22/Three.html
  
  Index: Three.html
  ===================================================================
  <html jwcid="@Shell" title="Three">
  <body>
  	
  <span jwcid="@NoTemplate"/>
  
  </body>
  </html>
  
  
  1.1                  jakarta-tapestry/junit/context22/WEB-INF/app.application
  
  Index: app.application
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: app.application,v 1.1 2003/03/23 01:27:51 hlship Exp $ -->
  <!DOCTYPE application PUBLIC 
    "-//Apache Software Foundation//Tapestry Specification 1.4//EN" 
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
  
  <application>
  	<extension name="org.apache.tapestry.specification-resolver-delegate"
  			  class="org.apache.tapestry.junit.mock.c22.DummySpecDelegate"/>
  	<extension name="org.apache.tapestry.template-source-delegate"
  			  class="org.apache.tapestry.junit.mock.c22.DummyTemplateDelegate"/>
  	
  </application>
  
  
  
  1.1                  jakarta-tapestry/junit/context22/WEB-INF/NoTemplate.jwc
  
  Index: NoTemplate.jwc
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: NoTemplate.jwc,v 1.1 2003/03/23 01:27:51 hlship Exp $ -->
  <!DOCTYPE component-specification PUBLIC 
    "-//Apache Software Foundation//Tapestry Specification 1.4//EN" 
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
  
  <component-specification/>
  
  
  
  1.1                  jakarta-tapestry/junit/context22/WEB-INF/Home.page
  
  Index: Home.page
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: Home.page,v 1.1 2003/03/23 01:27:51 hlship Exp $ -->
  <!DOCTYPE page-specification PUBLIC 
    "-//Apache Software Foundation//Tapestry Specification 1.4//EN" 
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
  
  <page-specification>
  	
  	<property-specification name="flag" type="boolean" persistent="yes"/>
  	
  	<component id="start" type="DirectLink">
  		<listener-binding name="listener">
  page.flag = 1
  cycle.setPage("Two")	
  		</listener-binding>	
  	</component>
  </page-specification>
  
  
  
  1.2       +3 -4      jakarta-tapestry/junit/src/log4j-slow.properties
  
  Index: log4j-slow.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/log4j-slow.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- log4j-slow.properties	23 Sep 2002 21:19:38 -0000	1.1
  +++ log4j-slow.properties	23 Mar 2003 01:27:51 -0000	1.2
  @@ -1,5 +1,4 @@
  -# Set root category priority to DEBUG and its only appender to A1.
  -log4j.rootCategory=ALL, A1
  -  
  -# A1 is set to be a ConsoleAppender. 
  +log4j.rootCategory=OFF, A1
  +log4j.category.org.apache.tapestry=ALL
  +# A1 is set to be a ConsoleAppender. 
   log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=.clover-classes/discard.log

log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%c{1}
[%p] %m%n

  
  
  
  1.3       +8 -9      jakarta-tapestry/junit/src/log4j.properties
  
  Index: log4j.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/log4j.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- log4j.properties	23 Sep 2002 21:19:38 -0000	1.2
  +++ log4j.properties	23 Mar 2003 01:27:51 -0000	1.3
  @@ -1,9 +1,8 @@
  -# Set root category priority to DEBUG and its only appender to A1.
  -log4j.rootCategory=OFF, A1
  -  
  -# A1 is set to be a ConsoleAppender. 
  -log4j.appender.A1=org.apache.log4j.ConsoleAppender
  -  
  -# A1 uses PatternLayout.
  -log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  -log4j.appender.A1.layout.ConversionPattern=%c{1} [%p] %m%n
  +log4j.rootCategory=OFF, A1
  +  
  +# A1 is set to be a ConsoleAppender. 
  +log4j.appender.A1=org.apache.log4j.ConsoleAppender
  +  
  +# A1 uses PatternLayout.
  +log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  +log4j.appender.A1.layout.ConversionPattern=%c{1} [%p] %m%n
  
  
  
  1.1                  jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/c22/DummyTemplateDelegate.java
  
  Index: DummyTemplateDelegate.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation", "Tapestry" 
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache" 
   *    or "Tapestry", nor may "Apache" or "Tapestry" appear in their 
   *    name, without prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE TAPESTRY CONTRIBUTOR COMMUNITY
   * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.tapestry.junit.mock.c22;
  
  import java.util.Locale;
  
  import org.apache.tapestry.IComponent;
  import org.apache.tapestry.IRequestCycle;
  import org.apache.tapestry.engine.ITemplateSourceDelegate;
  import org.apache.tapestry.parse.ComponentTemplate;
  
  /**
   *  Used to test the {@link org.apache.tapestry.engine.ITemplateSourceDelegate}.
   *
   *  @author Howard Lewis Ship
   *  @version $Id: DummyTemplateDelegate.java,v 1.1 2003/03/23 01:27:51 hlship Exp $
   *  @since 2.4
   *
   **/
  
  public class DummyTemplateDelegate implements ITemplateSourceDelegate
  {
  
      public ComponentTemplate findTemplate(IRequestCycle cycle, IComponent component, Locale
locale)
      {
          cycle.getRequestContext().getSession().setAttribute(
              "template",
              component.getSpecification().getSpecificationLocation().toString());
  
          return null;
      }
  
  }
  
  
  
  1.1                  jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/c22/DummySpecDelegate.java
  
  Index: DummySpecDelegate.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation", "Tapestry" 
   *    must not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache" 
   *    or "Tapestry", nor may "Apache" or "Tapestry" appear in their 
   *    name, without prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE TAPESTRY CONTRIBUTOR COMMUNITY
   * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.tapestry.junit.mock.c22;
  
  import org.apache.tapestry.INamespace;
  import org.apache.tapestry.IRequestCycle;
  import org.apache.tapestry.resolver.ISpecificationResolverDelegate;
  import org.apache.tapestry.spec.ComponentSpecification;
  
  /**
   *  Part of the test harness for testing 
   *  {@link org.apache.tapestry.resolver.ISpecificationResolverDelegate}.
   *
   *  @author Howard Lewis Ship
   *  @version $Id: DummySpecDelegate.java,v 1.1 2003/03/23 01:27:51 hlship Exp $
   *  @since 2.4
   *
   **/
  
  public class DummySpecDelegate implements ISpecificationResolverDelegate
  {
  
      public ComponentSpecification findPageSpecification(
          IRequestCycle cycle,
          INamespace namespace,
          String simplePageName)
      {
       	cycle.getRequestContext().getSession().setAttribute("page", simplePageName);
       	
       	return null;
      }
  
      public ComponentSpecification findComponentSpecification(
          IRequestCycle cycle,
          INamespace namespace,
          String type)
      {
        	cycle.getRequestContext().getSession().setAttribute("type", type);
        	
        	return null;
      }
  
  }
  
  
  
  1.3       +4 -15     jakarta-tapestry/junit/mock-scripts/TestLibrary.xml
  
  Index: TestLibrary.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/mock-scripts/TestLibrary.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestLibrary.xml	18 Mar 2003 20:55:29 -0000	1.2
  +++ TestLibrary.xml	23 Mar 2003 01:27:51 -0000	1.3
  @@ -153,20 +153,9 @@
     <request>
     	<parameter name="service" value="page/lib:Properties"/>
     	
  -  	<assert-output-matches name="Page properties" subgroup="1">
  -<![CDATA[
  -<td>(.*?)</td>
  -]]>
  -		<match>Name</match>
  -		<match>Properties</match>
  -		
  -		<match>Page Name</match>
  -		<match>lib:Properties</match>
  -		
  -		<match>Qualified Name</match>
  -		<match>lib:Properties</match>	
  -		
  -	</assert-output-matches>
  +  	<assert-output name="Page Name">
  +  	Page Name: [lib:Properties]	
  +  	</assert-output>
   	
     </request>	
     	
  
  
  
  1.1                  jakarta-tapestry/junit/mock-scripts/TestSpecDelegate.xml
  
  Index: TestSpecDelegate.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- $Id: TestSpecDelegate.xml,v 1.1 2003/03/23 01:27:51 hlship Exp $ -->
  
  <mock-test>
      <context name="c22" root="context22"/>
  
    	<servlet name="app" class="org.apache.tapestry.ApplicationServlet"/>
  
  	<request>
  	
  		<assert-output name="Title">
  <![CDATA[
  <title>Home</title>
  ]]>
  		</assert-output>
  		
  		<assert-output name="Link">
  href="/c22/app?service=direct/0/Home/start"
  		</assert-output>	
  		
  	</request>
  	
  	<request>
  		<parameter name="service" value="direct/0/Home/start"/>
  		
  		<assert-output name="Title">
  <![CDATA[
  <title>Exception</title>
  ]]>	
  		</assert-output>	
  		
  		<assert-output name="Error Message">
  		Component 'Unknown' not found in application namespace.	
  		</assert-output>
  		
  		<assert name="Check">
  		request.session.getAttribute("type").equals("Unknown")		
  		</assert>
  		
  	</request>
  	
  	<request>
  		<parameter name="service" value="page/NotFound"/>
  		
  		<assert-output name="Title">
  <![CDATA[
  <title>Exception</title>
  ]]>	
  		</assert-output>	
  		
  		<assert-output name="Error Message">
  		Page 'NotFound' not found in application namespace.	
  		</assert-output>
  		
  		<assert name="Check">
  		request.session.getAttribute("page").equals("NotFound")			
  		</assert>		
  		
  	</request>
  	
  	<request>
  		<parameter name="service" value="page/Three"/>
  		
  		<assert-output name="Title">
  <![CDATA[
  <title>Exception</title>
  ]]>	
  		</assert-output>	
  		
  		<assert-output name="Error Message">
  		Could not find template for component Three/$NoTemplate in locale en.
  		</assert-output>
  		
  		<assert name="Check">
  		request.session.getAttribute("template").equals("context:/WEB-INF/NoTemplate.jwc")			
  		</assert>		
  		
  	</request>
  	
  </mock-test>
  
  
  1.2       +3 -3      jakarta-tapestry/junit/src/org/apache/tapestry/junit/utils/TestPropertyFinder.java
  
  Index: TestPropertyFinder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/utils/TestPropertyFinder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestPropertyFinder.java	5 Mar 2003 23:19:48 -0000	1.1
  +++ TestPropertyFinder.java	23 Mar 2003 01:27:51 -0000	1.2
  @@ -103,9 +103,9 @@
   
       public void testInheritedProperty()
       {
  -        PropertyInfo i = PropertyFinder.getPropertyInfo(BasePage.class, "name");
  +        PropertyInfo i = PropertyFinder.getPropertyInfo(BasePage.class, "pageName");
   
  -        assertEquals("name", i.getName());
  +        assertEquals("pageName", i.getName());
           assertEquals(String.class, i.getType());
           assertEquals(true, i.isRead());
           assertEquals(true, i.isReadWrite());
  
  
  
  1.2       +1 -12     jakarta-tapestry/junit/src/org/apache/tapestry/junit/MockEngine.java
  
  Index: MockEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/MockEngine.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MockEngine.java	5 Mar 2003 23:19:52 -0000	1.1
  +++ MockEngine.java	23 Mar 2003 01:27:51 -0000	1.2
  @@ -90,7 +90,6 @@
   {
       private IComponentStringsSource componentStringsSource;
   
  -    private boolean _refreshing;
       private Pool _pool = new Pool();
       private String _servletPath;
   
  @@ -204,16 +203,6 @@
       public DataSqueezer getDataSqueezer()
       {
           return null;
  -    }
  -
  -    public boolean isRefreshing()
  -    {
  -        return _refreshing;
  -    }
  -
  -    public void setRefreshing(boolean refreshing)
  -    {
  -        _refreshing = refreshing;
       }
   
       public IPropertySource getPropertySource()
  
  
  
  1.3       +10 -31    jakarta-tapestry/junit/src/org/apache/tapestry/junit/MockPage.java
  
  Index: MockPage.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/MockPage.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MockPage.java	15 Mar 2003 21:22:23 -0000	1.2
  +++ MockPage.java	23 Mar 2003 01:27:51 -0000	1.3
  @@ -72,7 +72,6 @@
   import org.apache.tapestry.IRequestCycle;
   import org.apache.tapestry.engine.IPageLoader;
   import org.apache.tapestry.event.ChangeObserver;
  -import org.apache.tapestry.event.PageCleanupListener;
   import org.apache.tapestry.event.PageDetachListener;
   import org.apache.tapestry.event.PageRenderListener;
   import org.apache.tapestry.spec.BaseLocatable;
  @@ -117,11 +116,6 @@
           this.locale = locale;
       }
   
  -    public String getName()
  -    {
  -        return null;
  -    }
  -
       public IComponent getNestedComponent(String path)
       {
           return null;
  @@ -139,11 +133,7 @@
       {
       }
   
  -    public void setName(String value)
  -    {
  -    }
  -
  -    public void validate(IRequestCycle cycle) 
  +    public void validate(IRequestCycle cycle)
       {
       }
   
  @@ -165,10 +155,6 @@
       {
       }
   
  -    public void cleanupPage()
  -    {
  -    }
  -
       public Object getVisit()
       {
           return null;
  @@ -178,14 +164,6 @@
       {
       }
   
  -    public void addPageDetachListener(PageDetachListener listener)
  -    {
  -    }
  -
  -    public void addPageCleanupListener(PageCleanupListener listener)
  -    {
  -    }
  -
       public void addAsset(String name, IAsset asset)
       {
       }
  @@ -194,7 +172,6 @@
       {
       }
   
  -
       public Map getAssets()
       {
           return null;
  @@ -277,7 +254,6 @@
           _specification = value;
       }
   
  -
       public void setBinding(String name, IBinding binding)
       {
       }
  @@ -287,7 +263,10 @@
           return null;
       }
   
  -    public void finishLoad(IRequestCycle cycle, IPageLoader loader, ComponentSpecification
specification)
  +    public void finishLoad(
  +        IRequestCycle cycle,
  +        IPageLoader loader,
  +        ComponentSpecification specification)
       {
       }
   
  @@ -312,10 +291,6 @@
           _engine = engine;
       }
   
  -    public void removePageCleanupListener(PageCleanupListener listener)
  -    {
  -    }
  -
       public void removePageDetachListener(PageDetachListener listener)
       {
       }
  @@ -371,6 +346,10 @@
       public IComponentStrings getStrings()
       {
           return null;
  +    }
  +
  +    public void addPageDetachListener(PageDetachListener listener)
  +    {
       }
   
   }
  
  
  
  1.2       +2 -21     jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/lib/Properties.html
  
  Index: Properties.html
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/lib/Properties.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Properties.html	5 Mar 2003 23:19:54 -0000	1.1
  +++ Properties.html	23 Mar 2003 01:27:51 -0000	1.2
  @@ -2,23 +2,4 @@
   
   <span jwcid="$content$">
   
  -<table>
  -
  -<tr>
  -<td>Name</td> 
  -<td><span jwcid="@Insert" value="ognl:name">Properties</span></td>
  -</tr>
  -
  -<tr>
  -<td>Page Name</td>
  -<td><span jwcid="@Insert" value="ognl:pageName">lib:Properties</span></td>
  -</tr>
  -
  -<tr>
  -<td>Qualified Name</td>
  -<td><span jwcid="@Insert" value="ognl:qualifiedName">lib:Properties</span></td>
  -</tr>
  -
  -</table>
  -
  -</span>
  \ No newline at end of file
  +Page Name: [<span jwcid="@Insert" value="ognl:pageName">lib:Properties</span>]
  \ No newline at end of file
  
  
  

Mime
View raw message