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
.XTabControllerModel
;
27 * Testing <code>com.sun.star.awt.XTabControllerModel</code>
30 * <li><code> getGroupControl()</code></li>
31 * <li><code> setGroupControl()</code></li>
32 * <li><code> setControlModels()</code></li>
33 * <li><code> getControlModels()</code></li>
34 * <li><code> setGroup()</code></li>
35 * <li><code> getGroupCount()</code></li>
36 * <li><code> getGroup()</code></li>
37 * <li><code> getGroupByName()</code></li>
40 * Since the interface is <b>DEPRECATED</b> all methods have
41 * status SKIPPED.OK <p>
43 * This test needs the following object relations :
45 * <li> <code>'Model1'</code> : <code>XControlModel</code> relation
46 * , any control model belonging to the object tested.</li>
47 * <li> <code>'Model2'</code> : <code>XControlModel</code> relation
48 * , any control model belonging to the object tested.</li>
50 * Test is <b> NOT </b> multithread compliant. <p>
51 * @see com.sun.star.awt.XTabControllerModel
53 public class _XTabControllerModel
extends MultiMethodTest
{
55 public XTabControllerModel oObj
= null;
59 * Sets group control to <code>true</code> then calls
60 * <code>getGroupControl()</code> method and checks the value. <p>
61 * Has <b> OK </b> status if the method returns <code>true</code>
64 public void _getGroupControl() {
65 log
.println("Always SKIPPED.OK since deprecated.");
66 tRes
.tested("getGroupControl()", Status
.skipped(true));
70 * Sets group control to <code>false</code> then calls
71 * <code>getGroupControl()</code> method and checks the value. <p>
72 * Has <b> OK </b> status if the method returns <code>false</code>
75 public void _setGroupControl() {
76 log
.println("Always SKIPPED.OK since deprecated.");
77 tRes
.tested("setGroupControl()", Status
.skipped(true));
81 * Test calls the method and sets control models to a single
82 * model from 'Model1' relation. <p>
83 * Has <b> OK </b> status if no exceptions were thrown. <p>
85 public void _setControlModels() {
86 log
.println("Always SKIPPED.OK since deprecated.");
87 tRes
.tested("setControlModels()", Status
.skipped(true));
91 * Calls method and checks if models were properly set in
92 * <code>setControlModels</code> method test. <p>
93 * Has <b>OK</b> status if the model sequence set is equal
94 * to the sequence get. <p>
95 * The following method tests are to be completed successfully before :
97 * <li> <code> setControlModels </code> : to set sequence of models.</li>
100 public void _getControlModels() {
101 log
.println("Always SKIPPED.OK since deprecated.");
102 tRes
.tested("getControlModels()", Status
.skipped(true));
106 * Sets the group named 'XTabControlModel' to sequence with a single
107 * element from 'Model2' relation. <p>
108 * Has <b> OK </b> status if no exceptions were thrown. <p>
110 public void _setGroup() {
111 log
.println("Always SKIPPED.OK since deprecated.");
112 tRes
.tested("setGroup()", Status
.skipped(true));
116 * Calls method and checks if the group was properly set in
117 * <code>setGroup</code> method test. <p>
118 * Has <b>OK</b> status if the sequence set is equal
119 * to the sequence get. <p>
120 * The following method tests are to be completed successfully before :
122 * <li> <code> setGroup </code> : to set the sequence.</li>
125 public void _getGroup() {
126 log
.println("Always SKIPPED.OK since deprecated.");
127 tRes
.tested("getGroup()", Status
.skipped(true));
131 * Retrieves group named 'XTabControllerModel' added in <code>
132 * setGroup</code> method test, and checks it. <p>
133 * Has <b> OK </b> status if sequence get is equal to sequence set.
134 * The following method tests are to be completed successfully before :
136 * <li> <code> setGroup </code> : to set the sequence.</li>
139 public void _getGroupByName() {
140 log
.println("Always SKIPPED.OK since deprecated.");
141 tRes
.tested("getGroupByName()", Status
.skipped(true));
145 * Gets number of groups.
146 * Has <b> OK </b> status if the number is greater than 0.
148 * <li> <code> setGroup </code> : to has at least one group.</li>
151 public void _getGroupCount() {
152 log
.println("Always SKIPPED.OK since deprecated.");
153 tRes
.tested("getGroupCount()", Status
.skipped(true));