Branch libreoffice-5-0-4
[LibreOffice.git] / qadevOOo / tests / java / mod / _forms / OButtonModel.java
blob4a53eccb5ade110ac3998e7dcf6b7cc7b2c0eaf1
1 /*
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 .
19 package mod._forms;
21 import java.io.PrintWriter;
22 import lib.TestEnvironment;
23 import lib.TestParameters;
25 /**
26 * Test for object which is represented by service
27 * <code>com.sun.star.com.sun.star.form.component.CommandButton</code>.
28 * <p>
29 * Object implements the following interfaces :
30 * <ul>
31 * <li> <code>com::sun::star::io::XPersistObject</code></li>
32 * <li> <code>com::sun::star::container::XChild</code></li>
33 * <li> <code>com::sun::star::form::FormControlModel</code></li>
34 * <li> <code>com::sun::star::form::XImageProducerSupplier</code></li>
35 * <li> <code>com::sun::star::form::FormComponent</code></li>
36 * <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
37 * <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
38 * <li> <code>com::sun::star::beans::XPropertySet</code></li>
39 * <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
40 * <li> <code>com::sun::star::beans::XPropertyState</code></li>
41 * <li> <code>com::sun::star::awt::UnoControlButtonModel</code></li>
42 * <li> <code>com::sun::star::form::component::CommandButton</code></li>
43 * <li> <code>com::sun::star::container::XNamed</code></li>
44 * <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
45 * <li> <code>com::sun::star::lang::XComponent</code></li>
46 * </ul>
47 * This object test <b> is NOT </b> designed to be run in several
48 * threads concurently.
50 * @see com.sun.star.io.XPersistObject
51 * @see com.sun.star.container.XChild
52 * @see com.sun.star.form
53 * @see com.sun.star.form.XImageProducerSupplier
54 * @see com.sun.star.form.FormComponent
55 * @see com.sun.star.beans.XPropertyAccess
56 * @see com.sun.star.beans.XPropertyContainer
57 * @see com.sun.star.beans.XPropertySet
58 * @see com.sun.star.beans.XFastPropertySet
59 * @see com.sun.star.beans.XPropertyState
60 * @see com.sun.star.awt.UnoControlButtonModel
61 * @see com.sun.star.form.component.CommandButton
62 * @see com.sun.star.container.XNamed
63 * @see com.sun.star.beans.XMultiPropertySet
64 * @see com.sun.star.lang.XComponent
65 * @see ifc.io._XPersistObject
66 * @see ifc.container._XChild
67 * @see ifc.form._FormControlModel
68 * @see ifc.form._XImageProducerSupplier
69 * @see ifc.form._FormComponent
70 * @see ifc.beans._XPropertySet
71 * @see ifc.beans._XFastPropertySet
72 * @see ifc.beans._XPropertyState
73 * @see ifc.awt._UnoControlButtonModel
74 * @see ifc.form.component._CommandButton
75 * @see ifc.container._XNamed
76 * @see ifc.beans._XMultiPropertySet
77 * @see ifc.lang._XComponent
79 public class OButtonModel extends GenericModelTest {
81 /**
82 * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
83 * <pre>
84 * super.m_kindOfControl="CommandButton";
85 * super.m_ObjectName = "com.sun.star.form.component.CommandButton";
86 * super.m_LCShape_Type = "CommandButton";
87 * </pre>
88 * Then <CODE>super.initialize()</CODE> was called.
89 * @param tParam the test parameter
90 * @param log the log writer
93 @Override
94 protected void initialize(TestParameters tParam, PrintWriter log) {
96 super.initialize(tParam, log);
98 super.m_kindOfControl="CommandButton";
100 super.m_ObjectName = "stardiv.one.form.component.CommandButton";
102 super.m_LCShape_Type = "CommandButton";
108 * calls <CODE>createTestEnvironment()</CODE> from it's super class
109 * @param Param the test parameter
110 * @param log the log writer
111 * @return lib.TestEnvironment
113 @Override
114 protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
115 PrintWriter log) {
116 return super.createTestEnvironment(Param, log);
119 } // finish class OButtonModelold