001 // Copyright 2006 The Apache Software Foundation 002 // 003 // Licensed under the Apache License, Version 2.0 (the "License"); 004 // you may not use this file except in compliance with the License. 005 // You may obtain a copy of the License at 006 // 007 // http://www.apache.org/licenses/LICENSE-2.0 008 // 009 // Unless required by applicable law or agreed to in writing, software 010 // distributed under the License is distributed on an "AS IS" BASIS, 011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 012 // See the License for the specific language governing permissions and 013 // limitations under the License. 014 015 package org.apache.tapestry.integration.app1.pages; 016 017 /** 018 * Integration test for TAPESTRY-1775. 019 */ 020 public abstract class Tap1775 extends Home { 021 022 public abstract String getMessage(); 023 public abstract void setMessage(String msg); 024 025 public void addToMessage(String msg) 026 { 027 String original = getMessage(); 028 setMessage(original==null ? msg : original + " " + msg); 029 } 030 031 public void doSubmit() 032 { 033 addToMessage("SUBMIT"); 034 } 035 036 public void doFirst() 037 { 038 addToMessage("FIRST"); 039 } 040 041 public void doSecond() 042 { 043 addToMessage("SECOND"); 044 } 045 046 public void doSuccess() 047 { 048 addToMessage("SUCCESS"); 049 } 050 051 public void doCancel() 052 { 053 addToMessage("CANCEL"); 054 } 055 056 public void doRefresh() 057 { 058 addToMessage("REFRESH"); 059 } 060 }