Branch libreoffice-5-0-4
[LibreOffice.git] / qadevOOo / tests / java / ifc / util / _XNumberFormatter.java
blob01f419ac7c3fef71f110066369b756bfcf233d05
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.util;
21 import lib.MultiMethodTest;
23 import com.sun.star.util.XNumberFormatter;
26 /**
27 * Testing <code>com.sun.star.util.XNumberFormatter</code>
28 * interface methods :
29 * <ul>
30 * <li><code> attachNumberFormatsSupplier()</code></li>
31 * <li><code> convertNumberToString() </code></li>
32 * <li><code> convertStringToNumber() </code></li>
33 * <li><code> detectNumberFormat() </code></li>
34 * <li><code> formatString() </code></li>
35 * <li><code> getInputString() </code></li>
36 * <li><code> getNumberFormatsSupplier() </code></li>
37 * <li><code> queryColorForNumber() </code></li>
38 * <li><code> queryColorForString() </code></li>
39 * </ul> <p>
40 * Test is <b> NOT </b> multithread compliant. <p>
41 * @see com.sun.star.util.XNumberFormatter
43 public class _XNumberFormatter extends MultiMethodTest {
45 public XNumberFormatter oObj = null;
47 /**
48 * Not implemented yet.
50 public void _attachNumberFormatsSupplier() {
51 log.println("Not yet implemented");
54 /**
55 * Tries to convert a number to a string. <p>
56 * Has <b> OK </b> status if the method returns not
57 * <code>null</code> value.
59 public void _convertNumberToString() {
60 double dValue = 1.56;
61 int key = 15;
63 String gString = oObj.convertNumberToString(key,dValue);
65 log.println("Getting: "+gString);
66 tRes.tested("convertNumberToString",gString!=null);
69 /**
70 * Not implemented yet.
72 public void _convertStringToNumber() {
73 log.println("Not yet implemented");
76 /**
77 * Not implemented yet.
79 public void _detectNumberFormat() {
80 log.println("Not yet implemented");
83 /**
84 * Not implemented yet.
86 public void _formatString() {
87 log.println("Not yet implemented");
90 /**
91 * Not implemented yet.
93 public void _getInputString() {
94 log.println("Not yet implemented");
97 /**
98 * Not implemented yet.
100 public void _getNumberFormatsSupplier() {
101 log.println("Not yet implemented");
105 * Not implemented yet.
107 public void _queryColorForNumber() {
108 log.println("Not yet implemented");
112 * Not implemented yet.
114 public void _queryColorForString() {
115 log.println("Not yet implemented");
117 } // finish class _XNumberFormatter