2 * This file is part of the LibreOffice project.
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/.
8 * This file incorporates work covered by the following license notice:
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 .
20 import com
.sun
.star
.uno
.XInterface
;
22 import java
.io
.PrintWriter
;
24 import lib
.StatusException
;
26 import lib
.TestEnvironment
;
27 import lib
.TestParameters
;
31 * Test for object which is represented by service
32 * <code>com.sun.star.awt.UnoControlProgressBarModel</code>. <p>
33 * Object implements the following interfaces :
35 * <li> <code>com::sun::star::awt::UnoControlProgressBarModel</code></li>
36 * <li> <code>com::sun::star::io::XPersistObject</code></li>
37 * <li> <code>com::sun::star::lang::XComponent</code></li>
38 * <li> <code>com::sun::star::beans::XPropertySet</code></li>
39 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
41 * This object test <b> is NOT </b> designed to be run in several
42 * threads concurently.
43 * @see com.sun.star.awt.UnoControlProgressBarModel
44 * @see com.sun.star.io.XPersistObject
45 * @see com.sun.star.lang.XComponent
46 * @see com.sun.star.beans.XPropertySet
47 * @see com.sun.star.beans.XMultiPropertySet
48 * @see ifc.awt._UnoControlProgressBarModel
49 * @see ifc.io._XPersistObject
50 * @see ifc.lang._XComponent
51 * @see ifc.beans._XPropertySet
52 * @see ifc.beans._XMultiPropertySet
54 public class UnoControlProgressBarModel
extends TestCase
{
56 * Creating a Testenvironment for the interfaces to be tested.
57 * Creates an instance of the service
58 * <code>com.sun.star.awt.UnoControlProgressBarModel</code>.
59 * Object relations created :
61 * <li> <code>'OBJNAME'</code> for
62 * {@link ifc.io._XPersistObject} </li>
66 public synchronized TestEnvironment
createTestEnvironment(TestParameters Param
,
68 throws StatusException
{
69 XInterface oObj
= null;
72 oObj
= (XInterface
) Param
.getMSF().createInstance(
73 "com.sun.star.awt.UnoControlProgressBarModel");
74 } catch (Exception e
) {
77 log
.println("creating a new environment for object");
79 TestEnvironment tEnv
= new TestEnvironment(oObj
);
81 tEnv
.addObjRelation("OBJNAME", "stardiv.vcl.controlmodel.ProgressBar");
84 } // finish method getTestEnvironment