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.chart; 25 26 import lib.MultiMethodTest; 27 28 import com.sun.star.beans.XPropertySet; 29 import com.sun.star.chart.XAxisZSupplier; 30 import com.sun.star.drawing.XShape; 31 32 /** 33 * Testing <code>com.sun.star.chart.XAxisZSupplier</code> 34 * interface methods : 35 * <ul> 36 * <li><code> getZMainGrid()</code></li> 37 * <li><code> getZAxisTitle()</code></li> 38 * <li><code> getZAxis()</code></li> 39 * <li><code> getZHelpGrid()</code></li> 40 * </ul> <p> 41 * @see com.sun.star.chart.XAxisZSupplier 42 */ 43 public class _XAxisZSupplier extends MultiMethodTest { 44 public XAxisZSupplier oObj = null; 45 boolean result = true; 46 47 /** 48 * Test calls the method and checks returned value. <p> 49 * Has <b> OK </b> status if the method returns 50 * value that isn't null. <p> 51 */ _getZMainGrid()52 public void _getZMainGrid() { 53 result = true; 54 55 XPropertySet MGrid = oObj.getZMainGrid(); 56 result = (MGrid != null); 57 58 tRes.tested("getZMainGrid()", result); 59 } 60 61 /** 62 * Test calls the method and checks returned value. <p> 63 * Has <b> OK </b> status if the method returns 64 * value that isn't null. <p> 65 */ _getZAxisTitle()66 public void _getZAxisTitle() { 67 result = true; 68 69 XShape title = oObj.getZAxisTitle(); 70 result = (title != null); 71 72 tRes.tested("getZAxisTitle()", result); 73 } 74 75 /** 76 * Test calls the method and checks returned value. <p> 77 * Has <b> OK </b> status if the method returns 78 * value that isn't null. <p> 79 */ _getZAxis()80 public void _getZAxis() { 81 result = true; 82 83 XPropertySet axis = oObj.getZAxis(); 84 result = (axis != null); 85 86 tRes.tested("getZAxis()", result); 87 } 88 89 /** 90 * Test calls the method and checks returned value. <p> 91 * Has <b> OK </b> status if the method returns 92 * value that isn't null. <p> 93 */ _getZHelpGrid()94 public void _getZHelpGrid() { 95 result = true; 96 97 XPropertySet HGrid = oObj.getZHelpGrid(); 98 result = (HGrid != null); 99 100 tRes.tested("getZHelpGrid()", result); 101 } 102 103 } // EOF XAxisZSupplier 104 105 106