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