/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* 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 .
*/
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 compliant.
* @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.