1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir package ifc.awt;
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir import lib.MultiMethodTest;
31*cdf0e10cSrcweir import lib.Status;
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir import com.sun.star.awt.XTabControllerModel;
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir /**
36*cdf0e10cSrcweir * Testing <code>com.sun.star.awt.XTabControllerModel</code>
37*cdf0e10cSrcweir * interface methods :
38*cdf0e10cSrcweir * <ul>
39*cdf0e10cSrcweir *  <li><code> getGroupControl()</code></li>
40*cdf0e10cSrcweir *  <li><code> setGroupControl()</code></li>
41*cdf0e10cSrcweir *  <li><code> setControlModels()</code></li>
42*cdf0e10cSrcweir *  <li><code> getControlModels()</code></li>
43*cdf0e10cSrcweir *  <li><code> setGroup()</code></li>
44*cdf0e10cSrcweir *  <li><code> getGroupCount()</code></li>
45*cdf0e10cSrcweir *  <li><code> getGroup()</code></li>
46*cdf0e10cSrcweir *  <li><code> getGroupByName()</code></li>
47*cdf0e10cSrcweir * </ul> <p>
48*cdf0e10cSrcweir *
49*cdf0e10cSrcweir * Since the interface is <b>DEPRECATED</b> all methods have
50*cdf0e10cSrcweir * status SKIPPED.OK <p>
51*cdf0e10cSrcweir *
52*cdf0e10cSrcweir * This test needs the following object relations :
53*cdf0e10cSrcweir * <ul>
54*cdf0e10cSrcweir *  <li> <code>'Model1'</code> : <code>XControlModel</code> relation
55*cdf0e10cSrcweir *    , any control model belonging to the object tested.</li>
56*cdf0e10cSrcweir *  <li> <code>'Model2'</code> : <code>XControlModel</code> relation
57*cdf0e10cSrcweir *    , any control model belonging to the object tested.</li>
58*cdf0e10cSrcweir * <ul> <p>
59*cdf0e10cSrcweir * Test is <b> NOT </b> multithread compilant. <p>
60*cdf0e10cSrcweir * @see com.sun.star.awt.XTabControllerModel
61*cdf0e10cSrcweir */
62*cdf0e10cSrcweir public class _XTabControllerModel extends MultiMethodTest {
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir     public XTabControllerModel oObj = null;
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir 
67*cdf0e10cSrcweir     /**
68*cdf0e10cSrcweir     * Sets group control to <code>true</code> then calls
69*cdf0e10cSrcweir     * <code>getGroupControl()</code> method and checks the value. <p>
70*cdf0e10cSrcweir     * Has <b> OK </b> status if the method returns <code>true</code>
71*cdf0e10cSrcweir     * <p>
72*cdf0e10cSrcweir     */
73*cdf0e10cSrcweir     public void _getGroupControl() {
74*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
75*cdf0e10cSrcweir         tRes.tested("getGroupControl()", Status.skipped(true));
76*cdf0e10cSrcweir     }
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir     /**
79*cdf0e10cSrcweir     * Sets group control to <code>false</code> then calls
80*cdf0e10cSrcweir     * <code>getGroupControl()</code> method and checks the value. <p>
81*cdf0e10cSrcweir     * Has <b> OK </b> status if the method returns <code>false</code>
82*cdf0e10cSrcweir     * <p>
83*cdf0e10cSrcweir     */
84*cdf0e10cSrcweir     public void _setGroupControl() {
85*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
86*cdf0e10cSrcweir         tRes.tested("setGroupControl()", Status.skipped(true));
87*cdf0e10cSrcweir     }
88*cdf0e10cSrcweir 
89*cdf0e10cSrcweir     /**
90*cdf0e10cSrcweir     * Test calls the method and sets control models to a single
91*cdf0e10cSrcweir     * model from 'Model1' relation. <p>
92*cdf0e10cSrcweir     * Has <b> OK </b> status if no exceptions were thrown. <p>
93*cdf0e10cSrcweir     */
94*cdf0e10cSrcweir     public void _setControlModels() {
95*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
96*cdf0e10cSrcweir         tRes.tested("setControlModels()", Status.skipped(true));
97*cdf0e10cSrcweir     }
98*cdf0e10cSrcweir 
99*cdf0e10cSrcweir     /**
100*cdf0e10cSrcweir     * Calls method and checks if models were properly set in
101*cdf0e10cSrcweir     * <code>setControlModels</code> method test. <p>
102*cdf0e10cSrcweir     * Has <b>OK</b> status if the model sequence set is equal
103*cdf0e10cSrcweir     * to the sequence get. <p>
104*cdf0e10cSrcweir     * The following method tests are to be completed successfully before :
105*cdf0e10cSrcweir     * <ul>
106*cdf0e10cSrcweir     *  <li> <code> setControlModels </code> : to set sequence of models.</li>
107*cdf0e10cSrcweir     * </ul>
108*cdf0e10cSrcweir     */
109*cdf0e10cSrcweir     public void _getControlModels() {
110*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
111*cdf0e10cSrcweir         tRes.tested("getControlModels()", Status.skipped(true));
112*cdf0e10cSrcweir     }
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir     /**
115*cdf0e10cSrcweir     * Sets the group named 'XTabControlModel' to sequence with a single
116*cdf0e10cSrcweir     * element from 'Model2' relation. <p>
117*cdf0e10cSrcweir     * Has <b> OK </b> status if no exceptions were thrown. <p>
118*cdf0e10cSrcweir     */
119*cdf0e10cSrcweir     public void _setGroup() {
120*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
121*cdf0e10cSrcweir         tRes.tested("setGroup()", Status.skipped(true));
122*cdf0e10cSrcweir     }
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir     /**
125*cdf0e10cSrcweir     * Calls method and checks if the group was properly set in
126*cdf0e10cSrcweir     * <code>setGroup</code> method test. <p>
127*cdf0e10cSrcweir     * Has <b>OK</b> status if the sequence set is equal
128*cdf0e10cSrcweir     * to the sequence get. <p>
129*cdf0e10cSrcweir     * The following method tests are to be completed successfully before :
130*cdf0e10cSrcweir     * <ul>
131*cdf0e10cSrcweir     *  <li> <code> setGroup </code> : to set the sequence.</li>
132*cdf0e10cSrcweir     * </ul>
133*cdf0e10cSrcweir     */
134*cdf0e10cSrcweir     public void _getGroup() {
135*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
136*cdf0e10cSrcweir         tRes.tested("getGroup()", Status.skipped(true));
137*cdf0e10cSrcweir     }
138*cdf0e10cSrcweir 
139*cdf0e10cSrcweir     /**
140*cdf0e10cSrcweir     * Retrieves group named 'XTabControllerModel' added in <code>
141*cdf0e10cSrcweir     * setGroup</code> method test, and checks it. <p>
142*cdf0e10cSrcweir     * Has <b> OK </b> status if sequence get is equal to sequence set.
143*cdf0e10cSrcweir     * The following method tests are to be completed successfully before :
144*cdf0e10cSrcweir     * <ul>
145*cdf0e10cSrcweir     *  <li> <code> setGroup </code> : to set the sequence.</li>
146*cdf0e10cSrcweir     * </ul>
147*cdf0e10cSrcweir     */
148*cdf0e10cSrcweir     public void _getGroupByName() {
149*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
150*cdf0e10cSrcweir         tRes.tested("getGroupByName()", Status.skipped(true));
151*cdf0e10cSrcweir     }
152*cdf0e10cSrcweir 
153*cdf0e10cSrcweir     /**
154*cdf0e10cSrcweir     * Gets number of groups.
155*cdf0e10cSrcweir     * Has <b> OK </b> status if the number is greater than 0.
156*cdf0e10cSrcweir     * <ul>
157*cdf0e10cSrcweir     *  <li> <code> setGroup </code> : to has at least one group.</li>
158*cdf0e10cSrcweir     * </ul>
159*cdf0e10cSrcweir     */
160*cdf0e10cSrcweir     public void _getGroupCount() {
161*cdf0e10cSrcweir         log.println("Always SKIPPED.OK since deprecated.");
162*cdf0e10cSrcweir         tRes.tested("getGroupCount()", Status.skipped(true));
163*cdf0e10cSrcweir     }
164*cdf0e10cSrcweir 
165*cdf0e10cSrcweir }
166*cdf0e10cSrcweir 
167