1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _XAxisZSupplier.java,v $
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 ************************************************************************/
33 import lib
.MultiMethodTest
;
35 import com
.sun
.star
.beans
.XPropertySet
;
36 import com
.sun
.star
.chart
.XAxisZSupplier
;
37 import com
.sun
.star
.drawing
.XShape
;
40 * Testing <code>com.sun.star.chart.XAxisZSupplier</code>
43 * <li><code> getZMainGrid()</code></li>
44 * <li><code> getZAxisTitle()</code></li>
45 * <li><code> getZAxis()</code></li>
46 * <li><code> getZHelpGrid()</code></li>
48 * @see com.sun.star.chart.XAxisZSupplier
50 public class _XAxisZSupplier
extends MultiMethodTest
{
51 public XAxisZSupplier oObj
= null;
52 boolean result
= true;
55 * Test calls the method and checks returned value. <p>
56 * Has <b> OK </b> status if the method returns
57 * value that isn't null. <p>
59 public void _getZMainGrid() {
62 XPropertySet MGrid
= oObj
.getZMainGrid();
63 result
= (MGrid
!= null);
65 tRes
.tested("getZMainGrid()", result
);
69 * Test calls the method and checks returned value. <p>
70 * Has <b> OK </b> status if the method returns
71 * value that isn't null. <p>
73 public void _getZAxisTitle() {
76 XShape title
= oObj
.getZAxisTitle();
77 result
= (title
!= null);
79 tRes
.tested("getZAxisTitle()", result
);
83 * Test calls the method and checks returned value. <p>
84 * Has <b> OK </b> status if the method returns
85 * value that isn't null. <p>
87 public void _getZAxis() {
90 XPropertySet axis
= oObj
.getZAxis();
91 result
= (axis
!= null);
93 tRes
.tested("getZAxis()", result
);
97 * Test calls the method and checks returned value. <p>
98 * Has <b> OK </b> status if the method returns
99 * value that isn't null. <p>
101 public void _getZHelpGrid() {
104 XPropertySet HGrid
= oObj
.getZHelpGrid();
105 result
= (HGrid
!= null);
107 tRes
.tested("getZHelpGrid()", result
);
110 } // EOF XAxisZSupplier