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: _XAxisXSupplier.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
.XAxisXSupplier
;
37 import com
.sun
.star
.drawing
.XShape
;
40 * Testing <code>com.sun.star.chart.XAxisXSupplier</code>
43 * <li><code> getXMainGrid()</code></li>
44 * <li><code> getXAxisTitle()</code></li>
45 * <li><code> getXAxis()</code></li>
46 * <li><code> getXHelpGrid()</code></li>
48 * @see com.sun.star.chart.XAxisXSupplier
50 public class _XAxisXSupplier
extends MultiMethodTest
{
52 public XAxisXSupplier oObj
= null;
53 boolean result
= true;
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() {
62 XPropertySet MGrid
= oObj
.getXMainGrid();
63 result
= (MGrid
!= null);
65 tRes
.tested("getXMainGrid()", result
);
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() {
75 XShape title
= oObj
.getXAxisTitle();
76 result
= (title
!= null);
78 tRes
.tested("getXAxisTitle()", result
);
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() {
88 XPropertySet axis
= oObj
.getXAxis();
89 result
= (axis
!= null);
91 tRes
.tested("getXAxis()", result
);
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() {
101 XPropertySet HGrid
= oObj
.getXHelpGrid();
102 result
= (HGrid
!= null);
104 tRes
.tested("getXHelpGrid()", result
);