Update ooo320-m1
[ooovba.git] / qadevOOo / tests / java / ifc / chart / _XAxisYSupplier.java
blob00831065214f156684dd4440c1e5aa774759d624
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: _XAxisYSupplier.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.XAxisYSupplier;
37 import com.sun.star.drawing.XShape;
39 /**
40 * Testing <code>com.sun.star.chart.XAxisYSupplier</code>
41 * interface methods :
42 * <ul>
43 * <li><code> getYMainGrid()</code></li>
44 * <li><code> getYAxisTitle()</code></li>
45 * <li><code> getYAxis()</code></li>
46 * <li><code> getYHelpGrid()</code></li>
47 * </ul> <p>
48 * @see com.sun.star.chart.XAxisYSupplier
50 public class _XAxisYSupplier extends MultiMethodTest {
52 public XAxisYSupplier oObj = null;
53 boolean result = true;
55 /**
56 * Test calls the method and checks returned value. <p>
57 * Has <b> OK </b> status if the method returns
58 * value that isn't null. <p>
60 public void _getYMainGrid() {
61 result = true;
63 XPropertySet MGrid = oObj.getYMainGrid();
64 result = (MGrid != null);
66 tRes.tested("getYMainGrid()", result);
69 /**
70 * Test calls the method and checks returned value. <p>
71 * Has <b> OK </b> status if the method returns
72 * value that isn't null. <p>
74 public void _getYAxisTitle() {
75 result = true;
77 XShape title = oObj.getYAxisTitle();
78 result = (title != null);
80 tRes.tested("getYAxisTitle()", result);
83 /**
84 * Test calls the method and checks returned value. <p>
85 * Has <b> OK </b> status if the method returns
86 * value that isn't null. <p>
88 public void _getYAxis() {
89 result = true;
91 XPropertySet axis = oObj.getYAxis();
92 result = (axis != null);
94 tRes.tested("getYAxis()", result);
97 /**
98 * Test calls the method and checks returned value. <p>
99 * Has <b> OK </b> status if the method returns
100 * value that isn't null. <p>
102 public void _getYHelpGrid() {
103 result = true;
105 XPropertySet HGrid = oObj.getYHelpGrid();
106 result = (HGrid != null);
108 tRes.tested("getYHelpGrid()", result);
110 } // EOF XAxisYSupplier