1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package ifc.drawing;
25 
26 import lib.MultiPropertyTest;
27 
28 import com.sun.star.drawing.XShape;
29 /**
30 * Testing <code>com.sun.star.drawing.ConnectorShape</code>
31 * service properties :
32 * <ul>
33 *  <li><code> EdgeLine1Delta</code></li>
34 *  <li><code> EdgeLine2Delta</code></li>
35 *  <li><code> EdgeLine3Delta</code></li>
36 * </ul> <p>
37 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
38 * @see com.sun.star.drawing.ConnectorShape
39 */
40 public class _ConnectorShape extends MultiPropertyTest {
41     public XShape[] conShapes = null;
42 
before()43     protected void before() {
44         conShapes = (XShape[]) tEnv.getObjRelation("XConnectorShape.Shapes");
45     }
46 
_EndShape()47     public void _EndShape() {
48         Object oldProp = null;
49         try {
50             oldProp = oObj.getPropertyValue("EndShape");
51         } catch (com.sun.star.beans.UnknownPropertyException e) {
52             e.printStackTrace();
53         } catch (com.sun.star.lang.WrappedTargetException e) {
54             e.printStackTrace();
55         }
56         testProperty("EndShape",oldProp,conShapes[0]);
57     }
58 
_StartShape()59     public void _StartShape() {
60         Object oldProp = null;
61         log.println("Special for StartShape");
62         try {
63             oldProp = oObj.getPropertyValue("StartShape");
64         } catch (com.sun.star.beans.UnknownPropertyException e) {
65             e.printStackTrace();
66         } catch (com.sun.star.lang.WrappedTargetException e) {
67             e.printStackTrace();
68         }
69         testProperty("StartShape",oldProp,conShapes[1]);
70     }
71 
72 
73 }
74 
75