1 15 package org.apache.tapestry.junit.mock.app; 16 17 import org.apache.tapestry.IExternalPage; 18 import org.apache.tapestry.IRequestCycle; 19 import org.apache.tapestry.html.BasePage; 20 import org.apache.tapestry.junit.mock.lib.Dumper; 21 22 public abstract class ServiceTest extends BasePage implements IExternalPage 23 { 24 public Object [] getServiceParameters() 25 { 26 return new Object [] 27 { "Sopranos", new Integer (20705), new Double (22. / 7.) }; 28 } 29 30 public void activateExternalPage(Object [] parameters, IRequestCycle cycle) 31 { 32 Dumper dumper = (Dumper) cycle.getPage("lib:Dumper"); 33 34 dumper.setObjects(parameters); 35 36 cycle.activate(dumper); 37 } 38 39 } | Popular Tags |