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