bump product version to 5.0.4.1
[LibreOffice.git] / qadevOOo / tests / java / ifc / form / _XGridColumnFactory.java
blob376bdbf8c8046217ba65f233b9d9b70c90954c82
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.form;
21 import lib.MultiMethodTest;
23 import com.sun.star.beans.XPropertySet;
24 import com.sun.star.form.XGridColumnFactory;
27 /**
28 * Testing <code>com.sun.star.form.XGridColumnFactory</code>
29 * interface methods :
30 * <ul>
31 * <li><code> createColumn()</code></li>
32 * <li><code> getColumnTypes()</code></li>
33 * </ul>
34 * Test is multithread compliant. <p>
35 * @see com.sun.star.form.XGridColumnFactory
37 public class _XGridColumnFactory extends MultiMethodTest {
39 public XGridColumnFactory oObj = null;
42 /**
43 * Test calls the method and checks return value. <p>
44 * Has <b> OK </b> status if the method returns
45 * non null value.
47 public void _getColumnTypes() {
49 String[] types = oObj.getColumnTypes();
50 tRes.tested("getColumnTypes()",types!=null);
53 /**
54 * Creates column of type 'TextField'. <p>
55 * Has <b>OK</b> status if non null value returned.
57 public void _createColumn() {
59 try {
60 XPropertySet column = oObj.createColumn("TextField");
61 tRes.tested("createColumn()",column!=null);
63 catch (com.sun.star.lang.IllegalArgumentException ex) {
64 log.println("Exception occurred while creating Column");
65 tRes.tested("createColumn()",false);
68 } // finish class _XGridColumnFactory