/*
* 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.XControlContainer;
import com.sun.star.awt.XTabController;
import com.sun.star.awt.XTabControllerModel;
/**
* This interface is DEPRECATED !!!
* All test results are SKIPPED.OK now.
* Testing com.sun.star.awt.XTabController
* interface methods :
*
activateFirst()
activateLast()
activateTabOrder()
autoTabOrder()
getContainer()
getControls()
getModel()
setContainer()
setModel()
* This test needs the following object relations : *
'MODEL'
: XTabControllerModel
a model for
* the object'CONTAINER'
: XControlContainer
a container
* for the object* @see com.sun.star.awt.XTabController */ public class _XTabController extends MultiMethodTest { public XTabController oObj = null; /** * Test calls the method with object relation 'MODEL' as a parameter.
* Has OK status if the method successfully returns * and no exceptions were thrown.
*/ public void _setModel() { oObj.setModel( (XTabControllerModel) tEnv.getObjRelation("MODEL")); tRes.tested("setModel()", Status.skipped(true) ); } /** * Test calls the method, then checks returned value.
* Has OK status if method returns a value that equals to * corresponding object relation.
* The following method tests are to be completed successfully before : *
setModel()
: sets model for the object * Has OK status if the method successfully returns * and no exceptions were thrown.
*/ public void _setContainer() { oObj.setContainer( (XControlContainer) tEnv.getObjRelation("CONTAINER")); tRes.tested("setContainer()", Status.skipped(true)); } /** * Test calls the method, then checks returned value.
* Has OK status if method returns a value that equals to * corresponding object relation.
* The following method tests are to be completed successfully before : *
setContainer()
: sets container for the object* Has OK status if returned sequence is not null.
*/ public void _getControls() { oObj.getControls(); tRes.tested("getControls()", Status.skipped(true) ); } /** * Test calls the method.
* Has OK status if the method successfully returns * and no exceptions were thrown.
*/ public void _autoTabOrder() { oObj.autoTabOrder(); tRes.tested("autoTabOrder()", Status.skipped(true)); } /** * Test calls the method.
* Has OK status if the method successfully returns * and no exceptions were thrown.
*/ public void _activateTabOrder() { oObj.activateTabOrder(); tRes.tested("activateTabOrder()", Status.skipped(true)); } /** * Test calls the method.
* Has OK status if the method successfully returns * and no exceptions were thrown.
*/ public void _activateFirst() { oObj.activateFirst(); tRes.tested("activateFirst()", Status.skipped(true)); } /** * Test calls the method.
* Has OK status if the method successfully returns * and no exceptions were thrown.
*/ public void _activateLast() { oObj.activateLast(); tRes.tested("activateLast()", Status.skipped(true)); } }