2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 import lib
.MultiMethodTest
;
23 import com
.sun
.star
.text
.XText
;
24 import com
.sun
.star
.text
.XTextFrame
;
28 * Testing <code>com.sun.star.text.XTextFrame</code>
31 * <li><code> getText()</code></li>
34 * The frame <b>must contain</b> the text 'The FrameText'
35 * for proper interface testing. <p>
37 * Test is <b> NOT </b> multithread compliant. <p>
38 * @see com.sun.star.text.XTextFrame
40 public class _XTextFrame
extends MultiMethodTest
{
42 public XTextFrame oObj
= null;
45 * Gets the text of the frame. <p>
47 * Has <b>OK</b> status if the text is equal to 'The FrameText'.
49 public void _getText() {
51 log
.println("Testing getText ...");
52 XText oFrameText
= oObj
.getText();
53 String Content
= oFrameText
.getString();
54 tRes
.tested( "getText()",Content
.equals("The FrameText") );
57 } // finish class _XTextFrame