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 .
21 import lib
.MultiPropertyTest
;
23 import com
.sun
.star
.uno
.Any
;
27 * Testing <code>com.sun.star.sdbc.RowSet</code>
28 * service properties :
30 * <li><code> DataSourceName</code></li>
31 * <li><code> URL</code></li>
32 * <li><code> Command</code></li>
33 * <li><code> TransactionIsolation</code></li>
34 * <li><code> TypeMap</code></li>
35 * <li><code> EscapeProcessing</code></li>
36 * <li><code> QueryTimeOut</code></li>
37 * <li><code> MaxFieldSize</code></li>
38 * <li><code> MaxRows</code></li>
39 * <li><code> User</code></li>
40 * <li><code> Password</code></li>
41 * <li><code> ResultSetType</code></li>
43 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
44 * @see com.sun.star.sdbc.RowSet
46 public class _RowSet
extends MultiPropertyTest
{
49 * Redefined method returns object, that contains changed property value.
51 public void _TypeMap() {
52 boolean result
= false;
54 Any TypeMap
= (Any
) oObj
.getPropertyValue("TypeMap");
55 String TypeName
= TypeMap
.getType().getTypeName();
56 String expected
= "com.sun.star.container.XNameAccess";
57 result
= TypeName
.equals(expected
);
59 log
.println("Expected Type is "+expected
);
60 log
.println("but the returned is "+TypeName
);
62 } catch(com
.sun
.star
.lang
.WrappedTargetException e
) {
63 log
.println("Exception " + e
.getMessage());
64 } catch(com
.sun
.star
.beans
.UnknownPropertyException e
) {
65 log
.println("Exception " + e
.getMessage());
68 tRes
.tested("TypeMap",result
);
71 } // finish class _RowSet