Avoid potential negative array index access to cached text.
[LibreOffice.git] / qadevOOo / tests / java / ifc / task / _XInteractionHandler.java
blobd36cc585bc85d6c27590a735744238d25711e13f
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.task;
23 /**
24 * <code>com.sun.star.task.XInteractionHandler</code> interface testing.
25 * This test needs the following object relations :
26 * <ul>
27 * <li> <code>'XInteractionHandler.Request'</code>
28 * (of type <code>com.sun.star.task.XInteractionRequest</code>):
29 * this interface implementation is handler specific and is
30 * passed as argument to method <code>handle</code>. </li>
31 * <ul> <p>
32 * Test is <b> NOT </b> multithread compliant. <p>
33 * @see com.sun.star.task.XInteractionHandler
35 import lib.MultiMethodTest;
36 import lib.Status;
38 import com.sun.star.task.XInteractionHandler;
40 /**
41 * <code>com.sun.star.task.XInteractionHandler</code> interface testing.
42 * This test needs the following object relations :
43 * <ul>
44 * <li> <code>'XInteractionHandler.Request'</code>
45 * (of type <code>com.sun.star.task.XInteractionRequest</code>):
46 * this interface implementation is handler specific and is
47 * passed as argument to method <code>handle</code>. </li>
48 * <ul> <p>
49 * Test is <b> NOT </b> multithread compliant. <p>
50 * @see com.sun.star.task.XInteractionHandler
52 public class _XInteractionHandler extends MultiMethodTest {
54 // oObj filled by MultiMethodTest
55 public XInteractionHandler oObj = null ;
57 /**
58 * Retrieves an object relation. <p>
60 @Override
61 public void before() {
64 /**
65 * Since this test is interactive (dialog window can't be
66 * disposed using API) it is skipped. <p>
67 * Always has <b>SKIPPED.OK</b> status .
69 public void _handle() {
70 tRes.tested("handle()", Status.skipped(true)) ;