merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / java / ifc / chart / _XAxisXSupplier.java
blob868133e74b4ea520061ba3e9c8efd080da6b6ace
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _XAxisXSupplier.java,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 package ifc.chart;
33 import lib.MultiMethodTest;
35 import com.sun.star.beans.XPropertySet;
36 import com.sun.star.chart.XAxisXSupplier;
37 import com.sun.star.drawing.XShape;
39 /**
40 * Testing <code>com.sun.star.chart.XAxisXSupplier</code>
41 * interface methods :
42 * <ul>
43 * <li><code> getXMainGrid()</code></li>
44 * <li><code> getXAxisTitle()</code></li>
45 * <li><code> getXAxis()</code></li>
46 * <li><code> getXHelpGrid()</code></li>
47 * </ul> <p>
48 * @see com.sun.star.chart.XAxisXSupplier
50 public class _XAxisXSupplier extends MultiMethodTest {
52 public XAxisXSupplier oObj = null;
53 boolean result = true;
55 /**
56 * Test calls the method and checks returned value. <p>
57 * Has <b> OK </b> status if returned value that isn't null. <p>
59 public void _getXMainGrid() {
60 result = true;
62 XPropertySet MGrid = oObj.getXMainGrid();
63 result = (MGrid != null);
65 tRes.tested("getXMainGrid()", result);
68 /**
69 * Test calls the method and checks returned value. <p>
70 * Has <b> OK </b> status if returned value that isn't null. <p>
72 public void _getXAxisTitle() {
73 result = true;
75 XShape title = oObj.getXAxisTitle();
76 result = (title != null);
78 tRes.tested("getXAxisTitle()", result);
81 /**
82 * Test calls the method and checks returned value. <p>
83 * Has <b> OK </b> status if returned value that isn't null. <p>
85 public void _getXAxis() {
86 result = true;
88 XPropertySet axis = oObj.getXAxis();
89 result = (axis != null);
91 tRes.tested("getXAxis()", result);
94 /**
95 * Test calls the method and checks returned value. <p>
96 * Has <b> OK </b> status if returned value that isn't null. <p>
98 public void _getXHelpGrid() {
99 result = true;
101 XPropertySet HGrid = oObj.getXHelpGrid();
102 result = (HGrid != null);
104 tRes.tested("getXHelpGrid()", result);