bump product version to 4.2.0.1
[LibreOffice.git] / qadevOOo / tests / java / ifc / drawing / _Text.java
blob104643619e726dbe48cd5b2e89afa6c3378ec8c5
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.MultiPropertyTest;
23 public class _Text extends MultiPropertyTest {
25 protected boolean compare(Object ob1, Object ob2) {
27 return super.compare(ob1, ob2);
31 public void _NumberingRules() {
32 //This property is readOnly
33 boolean bResult = false;
35 try {
36 Object theRules2 = oObj.getPropertyValue( "NumberingRules" );
37 if (!(theRules2 instanceof com.sun.star.container.XIndexReplace)) {
38 log.println("Property 'NumberingRules' is an instance of "+
39 theRules2.getClass().getName());
40 log.println("Expected was an instance of "+
41 "com.sun.star.container.XIndexReplace");
43 log.println("Trying to cast property 'NumberingRules' "+
44 "to XIndexReplace");
45 oObj.getPropertyValue( "NumberingRules" );
46 bResult = true;
47 } catch( Exception e ) {
48 log.println("Error occurred while trying to get property"+
49 " 'NumberingRules'");
50 e.printStackTrace( log );
51 bResult = false;
54 tRes.tested( "NumberingRules", bResult);
57 } // finish class _Text