/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
package ifc.awt;
import lib.MultiMethodTest;
import lib.Status;
import com.sun.star.awt.XTabControllerModel;
/**
* Testing com.sun.star.awt.XTabControllerModel
* interface methods :
*
getGroupControl()
setGroupControl()
setControlModels()
getControlModels()
setGroup()
getGroupCount()
getGroup()
getGroupByName()
* * Since the interface is DEPRECATED all methods have * status SKIPPED.OK
* * This test needs the following object relations : *
'Model1'
: XControlModel
relation
* , any control model belonging to the object tested.'Model2'
: XControlModel
relation
* , any control model belonging to the object tested.* Test is NOT multithread compilant.
* @see com.sun.star.awt.XTabControllerModel
*/
public class _XTabControllerModel extends MultiMethodTest {
public XTabControllerModel oObj = null;
/**
* Sets group control to true
then calls
* getGroupControl()
method and checks the value.
* Has OK status if the method returns true
*
*/
public void _getGroupControl() {
log.println("Always SKIPPED.OK since deprecated.");
tRes.tested("getGroupControl()", Status.skipped(true));
}
/**
* Sets group control to false
then calls
* getGroupControl()
method and checks the value.
* Has OK status if the method returns false
*
*/ public void _setGroupControl() { log.println("Always SKIPPED.OK since deprecated."); tRes.tested("setGroupControl()", Status.skipped(true)); } /** * Test calls the method and sets control models to a single * model from 'Model1' relation.
* Has OK status if no exceptions were thrown.
*/
public void _setControlModels() {
log.println("Always SKIPPED.OK since deprecated.");
tRes.tested("setControlModels()", Status.skipped(true));
}
/**
* Calls method and checks if models were properly set in
* setControlModels
method test.
* Has OK status if the model sequence set is equal * to the sequence get.
* The following method tests are to be completed successfully before : *
setControlModels
: to set sequence of models.* Has OK status if no exceptions were thrown.
*/
public void _setGroup() {
log.println("Always SKIPPED.OK since deprecated.");
tRes.tested("setGroup()", Status.skipped(true));
}
/**
* Calls method and checks if the group was properly set in
* setGroup
method test.
* Has OK status if the sequence set is equal * to the sequence get.
* The following method tests are to be completed successfully before : *
setGroup
: to set the sequence.
* setGroup
method test, and checks it. * Has OK status if sequence get is equal to sequence set. * The following method tests are to be completed successfully before : *
setGroup
: to set the sequence. setGroup
: to has at least one group.