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
;
24 import com
.sun
.star
.awt
.XControlContainer
;
25 import com
.sun
.star
.awt
.XTabController
;
26 import com
.sun
.star
.awt
.XTabControllerModel
;
29 * This interface is DEPRECATED !!!
30 * All test results are SKIPPED.OK now.
31 * Testing <code>com.sun.star.awt.XTabController</code>
34 * <li><code> activateFirst()</code></li>
35 * <li><code> activateLast()</code></li>
36 * <li><code> activateTabOrder()</code></li>
37 * <li><code> autoTabOrder()</code></li>
38 * <li><code> getContainer()</code></li>
39 * <li><code> getCotrols()</code></li>
40 * <li><code> getModel()</code></li>
41 * <li><code> setContainer()</code></li>
42 * <li><code> setModel()</code></li>
44 * This test needs the following object relations :
46 * <li> <code>'MODEL'</code> : <code>XTabControllerModel</code> a model for
48 * <li> <code>'CONTAINER'</code> : <code>XControlContainer</code> a container
51 * @see com.sun.star.awt.XTabController
53 public class _XTabController
extends MultiMethodTest
{
54 public XTabController oObj
= null;
57 * Test calls the method with object relation 'MODEL' as a parameter.<p>
58 * Has <b> OK </b> status if the method successfully returns
59 * and no exceptions were thrown. <p>
61 public void _setModel() {
62 oObj
.setModel( (XTabControllerModel
) tEnv
.getObjRelation("MODEL"));
63 tRes
.tested("setModel()", Status
.skipped(true) );
67 * Test calls the method, then checks returned value.<p>
68 * Has <b> OK </b> status if method returns a value that equals to
69 * corresponding object relation.<p>
70 * The following method tests are to be completed successfully before :
72 * <li> <code> setModel() </code> : sets model for the object </li>
75 public void _getModel() {
76 requiredMethod("setModel()");
78 tRes
.tested("getModel()", Status
.skipped(true));
82 * Test calls the method with object relation 'CONTAINER' as a parameter.<p>
83 * Has <b> OK </b> status if the method successfully returns
84 * and no exceptions were thrown. <p>
86 public void _setContainer() {
87 oObj
.setContainer( (XControlContainer
)
88 tEnv
.getObjRelation("CONTAINER"));
89 tRes
.tested("setContainer()", Status
.skipped(true));
93 * Test calls the method, then checks returned value.<p>
94 * Has <b> OK </b> status if method returns a value that equals to
95 * corresponding object relation.<p>
96 * The following method tests are to be completed successfully before :
98 * <li> <code> setContainer() </code> : sets container for the object</li>
101 public void _getContainer() {
102 requiredMethod( "setContainer()");
104 tEnv
.getObjRelation("CONTAINER");
105 tRes
.tested("getContainer()", Status
.skipped(true) );
109 * Test calls the method, then checks returned sequence.<p>
110 * Has <b> OK </b> status if returned sequence is not null.<p>
112 public void _getControls() {
114 tRes
.tested("getControls()", Status
.skipped(true) );
118 * Test calls the method. <p>
119 * Has <b> OK </b> status if the method successfully returns
120 * and no exceptions were thrown. <p>
122 public void _autoTabOrder() {
124 tRes
.tested("autoTabOrder()", Status
.skipped(true));
128 * Test calls the method. <p>
129 * Has <b> OK </b> status if the method successfully returns
130 * and no exceptions were thrown. <p>
132 public void _activateTabOrder() {
133 oObj
.activateTabOrder();
134 tRes
.tested("activateTabOrder()", Status
.skipped(true));
138 * Test calls the method. <p>
139 * Has <b> OK </b> status if the method successfully returns
140 * and no exceptions were thrown. <p>
142 public void _activateFirst() {
143 oObj
.activateFirst();
144 tRes
.tested("activateFirst()", Status
.skipped(true));
148 * Test calls the method. <p>
149 * Has <b> OK </b> status if the method successfully returns
150 * and no exceptions were thrown. <p>
152 public void _activateLast() {
154 tRes
.tested("activateLast()", Status
.skipped(true));