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