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.chart;
25 
26 import lib.MultiPropertyTest;
27 
28 /**
29 * Testing <code>com.sun.star.chart.ChartDataRowProperties</code>
30 * service properties :
31 * <ul>
32 *  <li><code> Axis</code></li>
33 *  <li><code> DataErrorProperties</code></li>
34 *  <li><code> DataMeanValueProperties</code></li>
35 *  <li><code> DataRegressionProperties</code></li>
36 * </ul> <p>
37 * @see com.sun.star.chart.ChartDataRowProperties
38 */
39 public class _ChartDataRowProperties extends MultiPropertyTest {
40 
_Axis()41     public void _Axis() {
42         try {
43             Integer axis = (Integer) oObj.getPropertyValue("Axis");
44             int newValue;
45             if (axis.intValue()==2) {
46                 newValue = 4;
47             } else {
48                 newValue = 2;
49             }
50             oObj.setPropertyValue("Axis", new Integer(newValue));
51             axis = (Integer) oObj.getPropertyValue("Axis");
52             tRes.tested("Axis",axis.intValue()==newValue);
53         } catch (Exception e) {
54             e.printStackTrace(log);
55             tRes.tested("Axis",false);
56         }
57     }
58 }
59 
60