merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / java / ifc / sheet / _XHeaderFooterContent.java
blob35496c37f46c6a9e6225a4de4f265e737b9d2437
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: _XHeaderFooterContent.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.sheet;
33 import lib.MultiMethodTest;
35 import com.sun.star.sheet.XHeaderFooterContent;
36 import com.sun.star.text.XText;
38 /**
39 * Testing <code>com.sun.star.sheet.XHeaderFooterContent</code>
40 * interface methods :
41 * <ul>
42 * <li><code> getLeftText()</code></li>
43 * <li><code> getCenterText()</code></li>
44 * <li><code> getRightText()</code></li>
45 * </ul> <p>
47 * @see com.sun.star.sheet.XHeaderFooterContent
49 public class _XHeaderFooterContent extends MultiMethodTest {
51 public XHeaderFooterContent oObj = null;
53 /**
54 * Test calls the method and checks string obtained from returned value. <p>
55 * Has <b>OK</b> status if obtained string is equal to <code>"LEFT"</code>.
56 * <p>
58 public void _getLeftText() {
59 XText left = oObj.getLeftText();
60 tRes.tested("getLeftText()",left.getString().equals("LEFT"));
63 /**
64 * Test calls the method and checks string obtained from returned value. <p>
65 * Has <b>OK</b> status if obtained string is equal to <code>"RIGHT"</code>.
66 * <p>
68 public void _getRightText() {
69 XText right = oObj.getRightText();
70 tRes.tested("getRightText()",right.getString().equals("RIGHT"));
73 /**
74 * Test calls the method and checks string obtained from returned value. <p>
75 * Has <b>OK</b> status if obtained string is equal to <code>"CENTER"</code>.
76 * <p>
78 public void _getCenterText() {
79 XText center = oObj.getCenterText();
80 tRes.tested("getCenterText()",center.getString().equals("CENTER"));
83 } // finish class _XHeaderFooterContent