1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package ifc.awt; 25 26 import lib.MultiMethodTest; 27 import lib.Status; 28 29 import com.sun.star.awt.XTabControllerModel; 30 31 /** 32 * Testing <code>com.sun.star.awt.XTabControllerModel</code> 33 * interface methods : 34 * <ul> 35 * <li><code> getGroupControl()</code></li> 36 * <li><code> setGroupControl()</code></li> 37 * <li><code> setControlModels()</code></li> 38 * <li><code> getControlModels()</code></li> 39 * <li><code> setGroup()</code></li> 40 * <li><code> getGroupCount()</code></li> 41 * <li><code> getGroup()</code></li> 42 * <li><code> getGroupByName()</code></li> 43 * </ul> <p> 44 * 45 * Since the interface is <b>DEPRECATED</b> all methods have 46 * status SKIPPED.OK <p> 47 * 48 * This test needs the following object relations : 49 * <ul> 50 * <li> <code>'Model1'</code> : <code>XControlModel</code> relation 51 * , any control model belonging to the object tested.</li> 52 * <li> <code>'Model2'</code> : <code>XControlModel</code> relation 53 * , any control model belonging to the object tested.</li> 54 * <ul> <p> 55 * Test is <b> NOT </b> multithread compilant. <p> 56 * @see com.sun.star.awt.XTabControllerModel 57 */ 58 public class _XTabControllerModel extends MultiMethodTest { 59 60 public XTabControllerModel oObj = null; 61 62 63 /** 64 * Sets group control to <code>true</code> then calls 65 * <code>getGroupControl()</code> method and checks the value. <p> 66 * Has <b> OK </b> status if the method returns <code>true</code> 67 * <p> 68 */ _getGroupControl()69 public void _getGroupControl() { 70 log.println("Always SKIPPED.OK since deprecated."); 71 tRes.tested("getGroupControl()", Status.skipped(true)); 72 } 73 74 /** 75 * Sets group control to <code>false</code> then calls 76 * <code>getGroupControl()</code> method and checks the value. <p> 77 * Has <b> OK </b> status if the method returns <code>false</code> 78 * <p> 79 */ _setGroupControl()80 public void _setGroupControl() { 81 log.println("Always SKIPPED.OK since deprecated."); 82 tRes.tested("setGroupControl()", Status.skipped(true)); 83 } 84 85 /** 86 * Test calls the method and sets control models to a single 87 * model from 'Model1' relation. <p> 88 * Has <b> OK </b> status if no exceptions were thrown. <p> 89 */ _setControlModels()90 public void _setControlModels() { 91 log.println("Always SKIPPED.OK since deprecated."); 92 tRes.tested("setControlModels()", Status.skipped(true)); 93 } 94 95 /** 96 * Calls method and checks if models were properly set in 97 * <code>setControlModels</code> method test. <p> 98 * Has <b>OK</b> status if the model sequence set is equal 99 * to the sequence get. <p> 100 * The following method tests are to be completed successfully before : 101 * <ul> 102 * <li> <code> setControlModels </code> : to set sequence of models.</li> 103 * </ul> 104 */ _getControlModels()105 public void _getControlModels() { 106 log.println("Always SKIPPED.OK since deprecated."); 107 tRes.tested("getControlModels()", Status.skipped(true)); 108 } 109 110 /** 111 * Sets the group named 'XTabControlModel' to sequence with a single 112 * element from 'Model2' relation. <p> 113 * Has <b> OK </b> status if no exceptions were thrown. <p> 114 */ _setGroup()115 public void _setGroup() { 116 log.println("Always SKIPPED.OK since deprecated."); 117 tRes.tested("setGroup()", Status.skipped(true)); 118 } 119 120 /** 121 * Calls method and checks if the group was properly set in 122 * <code>setGroup</code> method test. <p> 123 * Has <b>OK</b> status if the sequence set is equal 124 * to the sequence get. <p> 125 * The following method tests are to be completed successfully before : 126 * <ul> 127 * <li> <code> setGroup </code> : to set the sequence.</li> 128 * </ul> 129 */ _getGroup()130 public void _getGroup() { 131 log.println("Always SKIPPED.OK since deprecated."); 132 tRes.tested("getGroup()", Status.skipped(true)); 133 } 134 135 /** 136 * Retrieves group named 'XTabControllerModel' added in <code> 137 * setGroup</code> method test, and checks it. <p> 138 * Has <b> OK </b> status if sequence get is equal to sequence set. 139 * The following method tests are to be completed successfully before : 140 * <ul> 141 * <li> <code> setGroup </code> : to set the sequence.</li> 142 * </ul> 143 */ _getGroupByName()144 public void _getGroupByName() { 145 log.println("Always SKIPPED.OK since deprecated."); 146 tRes.tested("getGroupByName()", Status.skipped(true)); 147 } 148 149 /** 150 * Gets number of groups. 151 * Has <b> OK </b> status if the number is greater than 0. 152 * <ul> 153 * <li> <code> setGroup </code> : to has at least one group.</li> 154 * </ul> 155 */ _getGroupCount()156 public void _getGroupCount() { 157 log.println("Always SKIPPED.OK since deprecated."); 158 tRes.tested("getGroupCount()", Status.skipped(true)); 159 } 160 161 } 162 163