1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 package mod._forms;
28 
29 import java.io.PrintWriter;
30 
31 import lib.TestEnvironment;
32 import lib.TestParameters;
33 
34 
35 /**
36  * Test for object which is represented by service
37  * <code>com.sun.star.form.component.GroupBox</code>. <p>
38  * Object implements the following interfaces :
39  * <ul>
40  *  <li> <code>com::sun::star::awt::UnoControlGroupBoxModel</code></li>
41  *  <li> <code>com::sun::star::io::XPersistObject</code></li>
42  *  <li> <code>com::sun::star::container::XChild</code></li>
43  *  <li> <code>com::sun::star::form::FormControlModel</code></li>
44  *  <li> <code>com::sun::star::form::FormComponent</code></li>
45  *  <li> <code>com::sun::star::beans::XPropertyAccess</code></li>
46  *  <li> <code>com::sun::star::beans::XPropertyContainer</code></li>
47  *  <li> <code>com::sun::star::beans::XPropertySet</code></li>
48  *  <li> <code>com::sun::star::beans::XFastPropertySet</code></li>
49  *  <li> <code>com::sun::star::beans::XPropertyState</code></li>
50  *  <li> <code>com::sun::star::container::XNamed</code></li>
51  *  <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
52  *  <li> <code>com::sun::star::lang::XComponent</code></li>
53  * </ul>
54  * This object test <b> is NOT </b> designed to be run in several
55  * threads concurently.
56  * @see com.sun.star.awt.UnoControlGroupBoxModel
57  * @see com.sun.star.io.XPersistObject
58  * @see com.sun.star.container.XChild
59  * @see com.sun.star.form.FormControlModel
60  * @see com.sun.star.form.FormComponent
61  * @see com.sun.star.beans.XPropertyAccess
62  * @see com.sun.star.beans.XPropertyContainer
63  * @see com.sun.star.beans.XPropertySet
64  * @see com.sun.star.beans.XFastPropertySet
65  * @see com.sun.star.beans.XPropertyState
66  * @see com.sun.star.container.XNamed
67  * @see com.sun.star.beans.XMultiPropertySet
68  * @see com.sun.star.lang.XComponent
69  * @see ifc.awt._UnoControlGroupBoxModel
70  * @see ifc.io._XPersistObject
71  * @see ifc.container._XChild
72  * @see ifc.form._FormControlModel
73  * @see ifc.form._FormComponent
74  * @see ifc.beans._XPropertySet
75  * @see ifc.beans._XFastPropertySet
76  * @see ifc.beans._XPropertyState
77  * @see ifc.container._XNamed
78  * @see ifc.beans._XMultiPropertySet
79  * @see ifc.lang._XComponent
80  */
81 public class OGroupBoxModel extends GenericModelTest {
82 
83     /**
84      * Set some member variable of the super class <CODE>GenericModelTest</CODE>:
85      * <pre>
86      *    <super.m_ChangePropertyName</CODE> = "Text";
87      *    super.m_kindOfControl</CODE>="GroupBox";
88      *    super.m_ObjectName</CODE> = "GroupBox";
89      * </pre>
90      * Then <CODE>super.initialize()</CODE> was called.
91      * @param tParam the test parameter
92      * @param log the log writer
93      */
94 
95     protected void initialize(TestParameters tParam, PrintWriter log) {
96 
97         super.initialize(tParam, log);
98 
99         super.m_kindOfControl="GroupBox";
100 
101         super.m_ObjectName = "stardiv.one.form.component.GroupBox";
102 
103         super.m_LCShape_Type = "FixedText";
104 
105         super.m_ChangePropertyName = "Text";
106     }
107     /**
108      * calls <CODE>cleanup()</CODE> from it's super class
109      * @param tParam the test parameter
110      * @param log the log writer
111      */
112     protected void cleanup(TestParameters tParam, PrintWriter log) {
113         super.cleanup(tParam, log);
114     }
115 
116 
117     /**
118      * calls <CODE>createTestEnvironment()</CODE> from it's super class
119      * @param Param the test parameter
120      * @param log the log writer
121      * @return lib.TestEnvironment
122      */
123     protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
124         PrintWriter log) {
125         return super.createTestEnvironment(Param, log);
126     }
127 
128 } // finish class OGroupBoxModel
129