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