1 /* 2 * This file is part of the LibreOffice project. 3 * 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/. 7 * 8 * This file incorporates work covered by the following license notice: 9 * 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 . 17 */ 18 19 package ifc.awt; 20 21 import lib.MultiMethodTest; 22 import lib.Status; 23 24 import com.sun.star.awt.XTabControllerModel; 25 26 /** 27 * Testing <code>com.sun.star.awt.XTabControllerModel</code> 28 * interface methods : 29 * <ul> 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> 38 * </ul> <p> 39 * 40 * Since the interface is <b>DEPRECATED</b> all methods have 41 * status SKIPPED.OK <p> 42 * 43 * This test needs the following object relations : 44 * <ul> 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> 49 * <ul> <p> 50 * Test is <b> NOT </b> multithread compliant. <p> 51 * @see com.sun.star.awt.XTabControllerModel 52 */ 53 public class _XTabControllerModel extends MultiMethodTest { 54 55 public XTabControllerModel oObj = null; 56 57 58 /** 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> 62 * <p> 63 */ _getGroupControl()64 public void _getGroupControl() { 65 log.println("Always SKIPPED.OK since deprecated."); 66 tRes.tested("getGroupControl()", Status.skipped(true)); 67 } 68 69 /** 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> 73 * <p> 74 */ _setGroupControl()75 public void _setGroupControl() { 76 log.println("Always SKIPPED.OK since deprecated."); 77 tRes.tested("setGroupControl()", Status.skipped(true)); 78 } 79 80 /** 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> 84 */ _setControlModels()85 public void _setControlModels() { 86 log.println("Always SKIPPED.OK since deprecated."); 87 tRes.tested("setControlModels()", Status.skipped(true)); 88 } 89 90 /** 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 : 96 * <ul> 97 * <li> <code> setControlModels </code> : to set sequence of models.</li> 98 * </ul> 99 */ _getControlModels()100 public void _getControlModels() { 101 log.println("Always SKIPPED.OK since deprecated."); 102 tRes.tested("getControlModels()", Status.skipped(true)); 103 } 104 105 /** 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> 109 */ _setGroup()110 public void _setGroup() { 111 log.println("Always SKIPPED.OK since deprecated."); 112 tRes.tested("setGroup()", Status.skipped(true)); 113 } 114 115 /** 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 : 121 * <ul> 122 * <li> <code> setGroup </code> : to set the sequence.</li> 123 * </ul> 124 */ _getGroup()125 public void _getGroup() { 126 log.println("Always SKIPPED.OK since deprecated."); 127 tRes.tested("getGroup()", Status.skipped(true)); 128 } 129 130 /** 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 : 135 * <ul> 136 * <li> <code> setGroup </code> : to set the sequence.</li> 137 * </ul> 138 */ _getGroupByName()139 public void _getGroupByName() { 140 log.println("Always SKIPPED.OK since deprecated."); 141 tRes.tested("getGroupByName()", Status.skipped(true)); 142 } 143 144 /** 145 * Gets number of groups. 146 * Has <b> OK </b> status if the number is greater than 0. 147 * <ul> 148 * <li> <code> setGroup </code> : to has at least one group.</li> 149 * </ul> 150 */ _getGroupCount()151 public void _getGroupCount() { 152 log.println("Always SKIPPED.OK since deprecated."); 153 tRes.tested("getGroupCount()", Status.skipped(true)); 154 } 155 156 } 157 158