Avoid potential negative array index access to cached text.
[LibreOffice.git] / qadevOOo / tests / java / ifc / drawing / _XShapeGroup.java
blob883bd1481f4d28dfe40cf94531da1e6585322564
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 ifc.drawing;
21 import lib.MultiMethodTest;
23 import com.sun.star.drawing.XShapeGroup;
25 /**
26 * Testing <code>com.sun.star.drawing.XShapeGroup</code>
27 * interface methods :
28 * <ul>
29 * <li><code> enterGroup()</code></li>
30 * <li><code> leaveGroup()</code></li>
31 * </ul> <p>
32 * Test is <b> NOT </b> multithread compliant. <p>
33 * @see com.sun.star.drawing.XShapeGroup
35 public class _XShapeGroup extends MultiMethodTest {
36 public XShapeGroup oObj = null;
38 /**
39 * The method called.
40 * Has <b> OK </b> status if the method successfully returns
41 * and no exceptions were thrown.
43 public void _enterGroup() {
44 log.println("Testing enterGroup()...");
45 oObj.enterGroup();
46 tRes.tested("enterGroup()", true);
49 /**
50 * The method called.
51 * Has <b> OK </b> status if the method successfully returns
52 * and no exceptions were thrown.
54 public void _leaveGroup() {
55 log.println("Testing leaveGroup()...");
56 oObj.leaveGroup();
57 tRes.tested("leaveGroup()", true);
60 } // end of _XShapeGroup