1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package ifc.sheet; 25 26 import lib.MultiPropertyTest; 27 28 /** 29 * Testing <code>com.sun.star.sheet.Spreadsheet</code> 30 * service properties : 31 * <ul> 32 * <li><code> IsVisible</code></li> 33 * <li><code> PageStyle</code></li> 34 * </ul> <p> 35 * Properties testing is automated by <code>lib.MultiPropertyTest</code>. 36 * @see com.sun.star.sheet.Spreadsheet 37 */ 38 public class _Spreadsheet extends MultiPropertyTest { 39 40 /** 41 *This class is destined to custom test of property <code>PageStyle</code>. 42 */ 43 protected PropertyTester styleTester = new PropertyTester() { 44 protected Object getNewValue(String propName, Object oldValue) { 45 String str = "Default"; 46 String str2= "Report"; 47 return str.equals(oldValue) ? str2 : str; 48 } 49 }; 50 51 /** 52 * Test property <code>PageStyle</code> using custom <code>PropertyTest</code>. 53 */ _PageStyle()54 public void _PageStyle() { 55 testProperty("PageStyle", styleTester); 56 } 57 } // finish class _Spreadsheet 58 59 60