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: _XTabControllerModel.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
;
36 import com
.sun
.star
.awt
.XTabControllerModel
;
39 * Testing <code>com.sun.star.awt.XTabControllerModel</code>
42 * <li><code> getGroupControl()</code></li>
43 * <li><code> setGroupControl()</code></li>
44 * <li><code> setControlModels()</code></li>
45 * <li><code> getControlModels()</code></li>
46 * <li><code> setGroup()</code></li>
47 * <li><code> getGroupCount()</code></li>
48 * <li><code> getGroup()</code></li>
49 * <li><code> getGroupByName()</code></li>
52 * Since the interface is <b>DEPRECATED</b> all methods have
53 * status SKIPPED.OK <p>
55 * This test needs the following object relations :
57 * <li> <code>'Model1'</code> : <code>XControlModel</code> relation
58 * , any control model belonging to the object tested.</li>
59 * <li> <code>'Model2'</code> : <code>XControlModel</code> relation
60 * , any control model belonging to the object tested.</li>
62 * Test is <b> NOT </b> multithread compilant. <p>
63 * @see com.sun.star.awt.XTabControllerModel
65 public class _XTabControllerModel
extends MultiMethodTest
{
67 public XTabControllerModel oObj
= null;
71 * Sets group control to <code>true</code> then calls
72 * <code>getGroupControl()</code> method and checks the value. <p>
73 * Has <b> OK </b> status if the method returns <code>true</code>
76 public void _getGroupControl() {
77 log
.println("Always SKIPPED.OK since deprecated.");
78 tRes
.tested("getGroupControl()", Status
.skipped(true));
82 * Sets group control to <code>false</code> then calls
83 * <code>getGroupControl()</code> method and checks the value. <p>
84 * Has <b> OK </b> status if the method returns <code>false</code>
87 public void _setGroupControl() {
88 log
.println("Always SKIPPED.OK since deprecated.");
89 tRes
.tested("setGroupControl()", Status
.skipped(true));
93 * Test calls the method and sets control models to a single
94 * model from 'Model1' relation. <p>
95 * Has <b> OK </b> status if no exceptions were thrown. <p>
97 public void _setControlModels() {
98 log
.println("Always SKIPPED.OK since deprecated.");
99 tRes
.tested("setControlModels()", Status
.skipped(true));
103 * Calls method and checks if models were properly set in
104 * <code>setControlModels</code> method test. <p>
105 * Has <b>OK</b> status if the model sequence set is equal
106 * to the sequence get. <p>
107 * The following method tests are to be completed successfully before :
109 * <li> <code> setControlModels </code> : to set sequence of models.</li>
112 public void _getControlModels() {
113 log
.println("Always SKIPPED.OK since deprecated.");
114 tRes
.tested("getControlModels()", Status
.skipped(true));
118 * Sets the group named 'XTabControlModel' to sequence with a single
119 * element from 'Model2' relation. <p>
120 * Has <b> OK </b> status if no exceptions were thrown. <p>
122 public void _setGroup() {
123 log
.println("Always SKIPPED.OK since deprecated.");
124 tRes
.tested("setGroup()", Status
.skipped(true));
128 * Calls method and checks if the group was properly set in
129 * <code>setGroup</code> method test. <p>
130 * Has <b>OK</b> status if the sequence set is equal
131 * to the sequence get. <p>
132 * The following method tests are to be completed successfully before :
134 * <li> <code> setGroup </code> : to set the sequence.</li>
137 public void _getGroup() {
138 log
.println("Always SKIPPED.OK since deprecated.");
139 tRes
.tested("getGroup()", Status
.skipped(true));
143 * Retrieves group named 'XTabControllerModel' added in <code>
144 * setGroup</code> method test, and checks it. <p>
145 * Has <b> OK </b> status if sequence get is equal to sequence set.
146 * The following method tests are to be completed successfully before :
148 * <li> <code> setGroup </code> : to set the sequence.</li>
151 public void _getGroupByName() {
152 log
.println("Always SKIPPED.OK since deprecated.");
153 tRes
.tested("getGroupByName()", Status
.skipped(true));
157 * Gets number of groups.
158 * Has <b> OK </b> status if the number is greater than 0.
160 * <li> <code> setGroup </code> : to has at least one group.</li>
163 public void _getGroupCount() {
164 log
.println("Always SKIPPED.OK since deprecated.");
165 tRes
.tested("getGroupCount()", Status
.skipped(true));