Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
33ec740d
Kaydet (Commit)
33ec740d
authored
Haz 27, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Haz 29, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Java5 update - Convert Hashtable to HashMap
Change-Id: Ibb568e841ff574d5232429ce0ba99e421ed7f05c
üst
10dd7e74
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
98 additions
and
87 deletions
+98
-87
CfgParser.java
qadevOOo/runner/helper/CfgParser.java
+10
-8
Parameters.java
qadevOOo/runner/lib/Parameters.java
+3
-3
TestEnvironment.java
qadevOOo/runner/lib/TestEnvironment.java
+2
-2
TestParameters.java
qadevOOo/runner/lib/TestParameters.java
+4
-4
TestResult.java
qadevOOo/runner/lib/TestResult.java
+2
-2
Runner.java
qadevOOo/runner/org/openoffice/Runner.java
+8
-5
DescEntry.java
qadevOOo/runner/share/DescEntry.java
+1
-1
ComplexDataBaseOutProducer.java
qadevOOo/runner/stats/ComplexDataBaseOutProducer.java
+2
-2
DataBaseOutProducer.java
qadevOOo/runner/stats/DataBaseOutProducer.java
+9
-9
FatDataBaseOutProducer.java
qadevOOo/runner/stats/FatDataBaseOutProducer.java
+2
-2
OutProducerFactory.java
qadevOOo/runner/stats/OutProducerFactory.java
+5
-5
SQLExecution.java
qadevOOo/runner/stats/SQLExecution.java
+14
-12
SOfficeFactory.java
qadevOOo/runner/util/SOfficeFactory.java
+2
-2
_CharacterProperties.java
qadevOOo/tests/java/ifc/style/_CharacterProperties.java
+15
-13
_XProxySettings.java
qadevOOo/tests/java/ifc/system/_XProxySettings.java
+5
-5
_NumberingLevel.java
qadevOOo/tests/java/ifc/text/_NumberingLevel.java
+8
-6
SOffice52ProxySettings.java
...vOOo/tests/java/mod/_proxyset/SOffice52ProxySettings.java
+3
-3
SystemProxySettings.java
qadevOOo/tests/java/mod/_proxyset/SystemProxySettings.java
+3
-3
No files found.
qadevOOo/runner/helper/CfgParser.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -17,10 +17,12 @@
*/
package
helper
;
import
lib.TestParameters
;
import
java.util.Properties
;
import
java.util.Enumeration
;
import
java.io.FileInputStream
;
import
java.util.Enumeration
;
import
java.util.Iterator
;
import
java.util.Properties
;
import
lib.TestParameters
;
import
util.PropertyName
;
/**
...
...
@@ -94,18 +96,18 @@ public class CfgParser
debug
=
param
.
DebugIsActive
;
//check for platform dependen
d
parameters
//check for platform dependen
t
parameters
//this would have a $OperatingSystem as prefix
String
os
=
(
String
)
param
.
get
(
PropertyName
.
OPERATING_SYSTEM
);
if
(
os
!=
null
&&
os
.
length
()
>
1
)
{
//found something that could be a pref
e
x
//found something that could be a pref
i
x
//check all parameters for this
Enumeration
keys
=
param
.
keys
();
while
(
keys
.
has
MoreElements
())
Iterator
keys
=
param
.
keySet
().
iterator
();
while
(
keys
.
has
Next
())
{
String
key
=
(
String
)
keys
.
next
Element
();
String
key
=
(
String
)
keys
.
next
();
if
(
key
.
startsWith
(
os
))
{
Object
oldValue
=
param
.
get
(
key
);
...
...
qadevOOo/runner/lib/Parameters.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -19,7 +19,7 @@
package
lib
;
import
java.util.Iterator
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
java.util.HashSet
;
import
java.util.Map
;
import
java.util.Set
;
...
...
@@ -149,7 +149,7 @@ public class Parameters implements XPropertySet {
}
public
Map
toMap
()
{
return
new
Hash
table
(
parameters
)
{
return
new
Hash
Map
(
parameters
)
{
public
Object
get
(
Object
obj
)
{
if
(
obj
instanceof
String
)
{
return
Parameters
.
this
.
get
((
String
)
obj
);
...
...
@@ -199,7 +199,7 @@ public class Parameters implements XPropertySet {
}
public
static
Map
toMap
(
XPropertySet
props
)
{
Hash
table
result
=
new
Hashtable
(
10
);
Hash
Map
result
=
new
HashMap
(
10
);
XPropertySetInfo
setInfo
=
props
.
getPropertySetInfo
();
Property
[]
properties
=
setInfo
.
getProperties
();
...
...
qadevOOo/runner/lib/TestEnvironment.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -19,7 +19,7 @@
package
lib
;
import
com.sun.star.uno.XInterface
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
/**
...
...
@@ -34,7 +34,7 @@ public final class TestEnvironment {
* Contains object relations - auxiliary objects associated with the
* tested object and required for testing.
*/
private
final
Hash
table
relations
=
new
Hashtable
(
10
);
private
final
Hash
Map
relations
=
new
HashMap
(
10
);
/**
* An instance of the tested implementation object.
...
...
qadevOOo/runner/lib/TestParameters.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -18,7 +18,7 @@
package
lib
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
util.PropertyName
;
import
com.sun.star.beans.XPropertySet
;
import
com.sun.star.uno.XComponentContext
;
...
...
@@ -31,7 +31,7 @@ import com.sun.star.uno.XComponentContext;
* for example, standard paths, connection strings, etc. The TestParameters
* also provides XMultiServiceFactory for the test (tests).
*/
public
class
TestParameters
extends
Hash
table
{
public
class
TestParameters
extends
Hash
Map
{
/**
* The ConnectionString for Office Connection<br>
...
...
@@ -167,7 +167,7 @@ public class TestParameters extends Hashtable {
* Wraper around "get()" with some debug output
* @param key A key of this table.
* @return The value of this key.
* @see java.util.Hash
table
* @see java.util.Hash
Map
*/
public
Object
get
(
Object
key
)
{
Object
val
=
super
.
get
(
key
);
...
...
@@ -234,7 +234,7 @@ public class TestParameters extends Hashtable {
* @param key A key of this table.
* @param val The value of the key.
* @return The value of this key.
* @see java.util.Hash
table
* @see java.util.Hash
Map
*/
public
Object
put
(
Object
key
,
Object
val
)
{
return
super
.
put
(
key
,
val
);
...
...
qadevOOo/runner/lib/TestResult.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -18,7 +18,7 @@
package
lib
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
/**
* The class supports interface tests development and Status calculation.
...
...
@@ -27,7 +27,7 @@ public class TestResult {
/**
* Contains methods having been tested and their results.
*/
protected
Hash
table
testedMethods
=
new
Hashtable
();
protected
Hash
Map
testedMethods
=
new
HashMap
();
/**
* The method makes method tested with the result, i.e. it adds to its
...
...
qadevOOo/runner/org/openoffice/Runner.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -17,14 +17,17 @@
*/
package
org
.
openoffice
;
import
helper.CfgParser
;
import
helper.ClParser
;
import
java.util.Enumeration
;
import
java.util.Iterator
;
import
java.util.Properties
;
import
java.util.StringTokenizer
;
import
lib.TestParameters
;
import
util.DynamicClassLoader
;
import
base.TestBase
;
import
helper.ClParser
;
import
helper.CfgParser
;
/**
* The main class, will call ClParser and CfgParser to <br>
...
...
@@ -151,10 +154,10 @@ public class Runner
bEmergencyStop
|=
checkPathVariable
(
"sun.boot.class.path"
,
sDelim
);
// ----- check all TestParameters -----
aEnum
=
_aParams
.
keys
();
while
(
a
Enum
.
hasMoreElements
())
Iterator
aIter
=
_aParams
.
keySet
().
iterator
();
while
(
a
Iter
.
hasNext
())
{
String
sKey
=
(
String
)
a
Enum
.
nextElemen
t
();
String
sKey
=
(
String
)
a
Iter
.
nex
t
();
if
(
_aParams
.
get
(
sKey
)
instanceof
String
)
{
String
sValue
=
(
String
)
_aParams
.
get
(
sKey
);
...
...
qadevOOo/runner/share/DescEntry.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -83,6 +83,6 @@ public class DescEntry {
* Contains an arbitrary set of parameters
*/
public
java
.
util
.
Hash
table
UserDefinedParams
=
new
java
.
util
.
Hashtable
();
public
java
.
util
.
Hash
Map
UserDefinedParams
=
new
java
.
util
.
HashMap
();
}
qadevOOo/runner/stats/ComplexDataBaseOutProducer.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -19,7 +19,7 @@ package stats;
import
share.LogWriter
;
import
java.text.DecimalFormat
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
java.util.Calendar
;
import
java.util.GregorianCalendar
;
...
...
@@ -30,7 +30,7 @@ import java.util.GregorianCalendar;
public
class
ComplexDataBaseOutProducer
extends
DataBaseOutProducer
{
/** Creates a new instance of ComplexDataBaseOutProducer */
public
ComplexDataBaseOutProducer
(
Hash
table
param
)
{
public
ComplexDataBaseOutProducer
(
Hash
Map
param
)
{
super
(
param
);
// do we have to write debug output?
Object
o
=
param
.
get
(
"DebugIsActive"
);
...
...
qadevOOo/runner/stats/DataBaseOutProducer.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -20,25 +20,25 @@ package stats;
import
share.LogWriter
;
import
share.DescEntry
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
/**
*
* @author sg128468
*/
public
abstract
class
DataBaseOutProducer
implements
LogWriter
{
protected
Hash
table
mSqlInput
=
null
;
protected
Hash
table
mSqlOutput
=
null
;
protected
Hash
Map
mSqlInput
=
null
;
protected
Hash
Map
mSqlOutput
=
null
;
protected
String
[]
mWriteableEntryTypes
=
null
;
protected
SQLExecution
mSqlExec
;
protected
boolean
m_bDebug
=
false
;
/** Creates a new instance of DataBaseOutProducer
* @param param The Hash
table
with test parameters
* @param param The Hash
Map
with test parameters
*/
public
DataBaseOutProducer
(
Hash
table
param
)
{
mSqlInput
=
new
Hash
table
();
public
DataBaseOutProducer
(
Hash
Map
param
)
{
mSqlInput
=
new
Hash
Map
();
mSqlInput
.
putAll
(
param
);
Object
o
=
param
.
get
(
"DebugIsActive"
);
...
...
@@ -118,10 +118,10 @@ public abstract class DataBaseOutProducer implements LogWriter {
* @param log The log writer.
*/
protected
boolean
insertEntry
(
DescEntry
entry
,
LogWriter
log
)
{
// copy the swlInput Hash
table
, so it can be reset easily for the next run
Hash
table
copySqlInput
=
new
Hashtable
();
// copy the swlInput Hash
Map
, so it can be reset easily for the next run
Hash
Map
copySqlInput
=
new
HashMap
();
copySqlInput
.
putAll
(
mSqlInput
);
// put some stuff from entry in the Hash
table
// put some stuff from entry in the Hash
Map
mSqlInput
.
put
(
"EntryLongName"
,
entry
.
longName
);
mSqlInput
.
put
(
"EntryName"
,
entry
.
entryName
);
mSqlInput
.
put
(
"EntryState"
,
entry
.
State
);
...
...
qadevOOo/runner/stats/FatDataBaseOutProducer.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -19,7 +19,7 @@ package stats;
import
java.text.DecimalFormat
;
import
share.LogWriter
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
java.util.Calendar
;
import
java.util.GregorianCalendar
;
...
...
@@ -31,7 +31,7 @@ public class FatDataBaseOutProducer extends DataBaseOutProducer {
/** Creates a new instance of APIDataBaseOutProducer */
public
FatDataBaseOutProducer
(
Hash
table
param
)
{
public
FatDataBaseOutProducer
(
Hash
Map
param
)
{
super
(
param
);
String
testBase
=
(
String
)
mSqlInput
.
get
(
"TestBase"
);
int
sep
=
testBase
.
indexOf
(
'_'
);
...
...
qadevOOo/runner/stats/OutProducerFactory.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -18,7 +18,7 @@
package
stats
;
import
share.LogWriter
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
util.DynamicClassLoader
;
/**
...
...
@@ -36,7 +36,7 @@ public class OutProducerFactory {
* @param Parameters of the test.
* @return The created out producer.
*/
public
static
LogWriter
createOutProducer
(
Hash
table
param
)
{
public
static
LogWriter
createOutProducer
(
Hash
Map
param
)
{
LogWriter
dbOut
=
null
;
boolean
getDatabase
=
convertToBool
(
param
.
get
(
"DataBaseOut"
));
if
(
getDatabase
)
{
...
...
@@ -61,11 +61,11 @@ public class OutProducerFactory {
}
/**
* Create a datab
b
ase out producer.
* Create a database out producer.
* @param The test parameters
* @return The database out producer, or null if it couldn't be created.
*/
public
static
LogWriter
createDataBaseOutProducer
(
Hash
table
param
)
{
public
static
LogWriter
createDataBaseOutProducer
(
Hash
Map
param
)
{
String
dataProducerName
=
(
String
)
param
.
get
(
"DataBaseOutProducer"
);
if
(
dataProducerName
==
null
)
{
String
testBaseName
=
(
String
)
param
.
get
(
"TestBase"
);
...
...
@@ -77,7 +77,7 @@ public class OutProducerFactory {
LogWriter
dbOut
=
null
;
try
{
dbOut
=
(
LogWriter
)
dcl
.
getInstance
(
dataProducerName
,
new
Class
[]{
new
Hash
table
().
getClass
()},
new
Object
[]{
param
});
new
Class
[]{
new
Hash
Map
().
getClass
()},
new
Object
[]{
param
});
}
catch
(
IllegalArgumentException
e
)
{
e
.
printStackTrace
();
...
...
qadevOOo/runner/stats/SQLExecution.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -24,7 +24,9 @@ import java.sql.ResultSetMetaData;
import
java.sql.Statement
;
import
java.util.ArrayList
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Hashtable
;
import
java.util.Iterator
;
import
java.util.StringTokenizer
;
/**
...
...
@@ -120,10 +122,10 @@ public class SQLExecution {
* Execute an sql command.
* @param command The command to execute.
* @param sqlInput Input values for the command.
* @param sqlOutput The results of the command are put in this Hash
table
.
* @param sqlOutput The results of the command are put in this Hash
Map
.
* @return True, if no error occurred.
*/
public
boolean
executeSQLCommand
(
String
command
,
Hash
table
sqlInput
,
Hashtable
sqlOutput
)
public
boolean
executeSQLCommand
(
String
command
,
Hash
Map
sqlInput
,
HashMap
sqlOutput
)
throws
IllegalArgumentException
{
return
executeSQLCommand
(
command
,
sqlInput
,
sqlOutput
,
false
);
}
...
...
@@ -132,15 +134,15 @@ public class SQLExecution {
* Execute an sql command.
* @param command The command to execute.
* @param sqlInput Input values for the command.
* @param sqlOutput The results of the command are put in this Hash
table
.
* @param sqlOutput The results of the command are put in this Hash
Map
.
* @param mergeOutputIntoInput The output of the result is put into the
* sqlInput Hash
table
.
* sqlInput Hash
Map
.
* @return True, if no error occurred.
*/
public
boolean
executeSQLCommand
(
String
command
,
Hash
table
sqlInput
,
Hashtable
sqlOutput
,
boolean
mergeOutputIntoInput
)
public
boolean
executeSQLCommand
(
String
command
,
Hash
Map
sqlInput
,
HashMap
sqlOutput
,
boolean
mergeOutputIntoInput
)
throws
IllegalArgumentException
{
if
(
sqlOutput
==
null
)
{
sqlOutput
=
new
Hash
table
();
sqlOutput
=
new
Hash
Map
();
// this has to be true, so the user of this method gets a return
mergeOutputIntoInput
=
true
;
if
(
sqlInput
==
null
)
{
...
...
@@ -229,9 +231,9 @@ public class SQLExecution {
execute
((
String
)
sqlCommand
.
get
(
i
),
sqlOutput
,
update
);
// merge output with input
if
(!
update
&&
mergeOutputIntoInput
)
{
Enumeration
keys
=
sqlOutput
.
keys
();
while
(
keys
.
has
MoreElements
())
{
String
key
=
(
String
)
keys
.
next
Element
();
Iterator
keys
=
sqlOutput
.
keySet
().
iterator
();
while
(
keys
.
has
Next
())
{
String
key
=
(
String
)
keys
.
next
();
String
[]
val
=
(
String
[])
sqlOutput
.
get
(
key
);
if
(
val
!=
null
&&
val
.
length
!=
0
)
{
if
(
val
.
length
==
1
)
...
...
@@ -252,9 +254,9 @@ public class SQLExecution {
* @param command The command.
* @param update If true, it is a update/alter command instead of an select
* command
* @return A Hash
table
with the result.
* @return A Hash
Map
with the result.
*/
private
void
execute
(
String
command
,
Hash
table
output
,
boolean
update
)
{
private
void
execute
(
String
command
,
Hash
Map
output
,
boolean
update
)
{
if
(
m_bDebug
)
System
.
out
.
println
(
"Debug - SQLExecution - execute Command: "
+
command
);
try
{
...
...
@@ -287,7 +289,7 @@ public class SQLExecution {
if
(
goThroughRowsTheFirstTime
)
goThroughRowsTheFirstTime
=
false
;
// put result in output Hash
table
// put result in output Hash
Map
String
[]
s
=
new
String
[
countRows
];
s
=
(
String
[])
v
.
toArray
(
s
);
output
.
put
(
columnNames
[
i
-
1
],
s
);
...
...
qadevOOo/runner/util/SOfficeFactory.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -17,7 +17,7 @@
*/
package
util
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
// access the implementations via names
import
com.sun.star.uno.XInterface
;
import
com.sun.star.lang.XMultiServiceFactory
;
...
...
@@ -44,7 +44,7 @@ import com.sun.star.awt.*;
public
class
SOfficeFactory
{
private
static
Hash
table
lookup
=
new
Hashtable
(
10
);
private
static
Hash
Map
lookup
=
new
HashMap
(
10
);
protected
XComponentLoader
oCLoader
;
private
SOfficeFactory
(
XMultiServiceFactory
xMSF
)
{
...
...
qadevOOo/tests/java/ifc/style/_CharacterProperties.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -18,17 +18,19 @@
package
ifc
.
style
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
lib.MultiPropertyTest
;
import
util.ValueChanger
;
import
util.utils
;
import
com.sun.star.beans.XPropertySet
;
import
com.sun.star.container.XNameContainer
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
import
com.sun.star.xml.AttributeData
;
import
java.util.Enumeration
;
import
java.util.Hashtable
;
import
lib.MultiPropertyTest
;
import
util.ValueChanger
;
import
util.utils
;
/**
...
...
@@ -481,11 +483,11 @@ public class _CharacterProperties extends MultiPropertyTest {
}
private
class
OwnUserDefinedAttributes
implements
XNameContainer
{
Hash
table
members
=
null
;
Hash
Map
members
=
null
;
public
OwnUserDefinedAttributes
()
{
members
=
new
Hash
table
();
members
=
new
Hash
Map
();
}
public
Object
getByName
(
String
str
)
throws
com
.
sun
.
star
.
container
.
NoSuchElementException
,
com
.
sun
.
star
.
lang
.
WrappedTargetException
{
...
...
@@ -493,18 +495,18 @@ public class _CharacterProperties extends MultiPropertyTest {
}
public
String
[]
getElementNames
()
{
Enumeration
oEnum
=
members
.
keys
();
Iterator
oEnum
=
members
.
keySet
().
iterator
();
int
count
=
members
.
size
();
String
[]
res
=
new
String
[
count
];
int
i
=
0
;
while
(
oEnum
.
has
MoreElements
())
res
[
i
]
=
(
String
)
oEnum
.
nextElemen
t
();
while
(
oEnum
.
has
Next
())
res
[
i
++]
=
(
String
)
oEnum
.
nex
t
();
return
res
;
}
public
com
.
sun
.
star
.
uno
.
Type
getElementType
()
{
Enumeration
oEnum
=
members
.
keys
();
String
key
=
(
String
)
oEnum
.
next
Element
();
Iterator
oEnum
=
members
.
keySet
().
iterator
();
String
key
=
(
String
)
oEnum
.
next
();
Object
o
=
members
.
get
(
key
);
return
new
Type
(
o
.
getClass
());
}
...
...
qadevOOo/tests/java/ifc/system/_XProxySettings.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -18,7 +18,7 @@
package
ifc
.
system
;
import
java.util.
Hashtable
;
import
java.util.
Map
;
import
lib.MultiMethodTest
;
import
lib.Status
;
...
...
@@ -30,7 +30,7 @@ import com.sun.star.system.XProxySettings;
* Tests <code>com.sun.star.system.XProxySettings</code> interface. The result
* of each method is compared with expected settings which is specified by the
* caller of the tests via object relation "XProxySettings.proxaSettings". That
* should be a Hash
table
containing the following keys:
* should be a Hash
Map
containing the following keys:
* <ul>
* <li>ftpProxyAddress</li>
* <li>ftpProxyPort</li>
...
...
@@ -54,10 +54,10 @@ public class _XProxySettings extends MultiMethodTest {
public
XProxySettings
oObj
;
/**
* Contains a Hash
table
with correct results of the tested methods. See
* Contains a Hash
Map
with correct results of the tested methods. See
* the class description.
*/
Hashtable
expectedProxies
;
Map
expectedProxies
;
/**
* Checks that the "XProxySettings.proxySettings" object relation is
...
...
@@ -68,7 +68,7 @@ public class _XProxySettings extends MultiMethodTest {
* @see #expectedProxies
*/
public
void
before
()
{
expectedProxies
=
(
Hashtable
)
tEnv
.
getObjRelation
(
expectedProxies
=
(
Map
)
tEnv
.
getObjRelation
(
"XProxySettings.proxySettings"
);
if
(
expectedProxies
==
null
)
{
...
...
qadevOOo/tests/java/ifc/text/_NumberingLevel.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -18,13 +18,15 @@
package
ifc
.
text
;
import
com.sun.star.beans.PropertyValue
;
import
java.util.
Enumeration
;
import
java.util.Hashtable
;
import
java.util.HashMap
;
import
java.util.
Iterator
;
import
lib.StatusException
;
import
lib.TestParameters
;
import
share.LogWriter
;
import
com.sun.star.beans.PropertyValue
;
/**
* Testing <code>com.sun.star.text.NumberingLevel</code><p>
...
...
@@ -63,7 +65,7 @@ import share.LogWriter;
public
class
_NumberingLevel
{
private
static
TestParameters
tParam
=
null
;
private
static
Hash
table
NumberingLevel
=
new
Hashtable
();
private
static
Hash
Map
NumberingLevel
=
new
HashMap
();
private
static
PropertyValue
[]
PropertyArray
=
null
;
private
static
LogWriter
log
=
null
;
...
...
@@ -137,8 +139,8 @@ public class _NumberingLevel {
// get rest of properties and check if they are optional
if
(!
NumberingLevel
.
isEmpty
()){
for
(
Enumeration
e
=
NumberingLevel
.
keys
()
;
e
.
hasMoreElements
()
;)
{
String
property
=
(
String
)
e
.
next
Element
();
for
(
Iterator
e
=
NumberingLevel
.
keySet
().
iterator
()
;
e
.
hasNext
()
;)
{
String
property
=
(
String
)
e
.
next
();
// if some elements are not optional -> failed
if
(
!
((
Boolean
)
NumberingLevel
.
get
(
property
)).
booleanValue
()
){
...
...
qadevOOo/tests/java/mod/_proxyset/SOffice52ProxySettings.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -19,7 +19,7 @@
package
mod
.
_proxyset
;
import
java.io.PrintWriter
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
lib.StatusException
;
import
lib.TestCase
;
...
...
@@ -60,7 +60,7 @@ public class SOffice52ProxySettings extends TestCase {
* <ul>
* <li> <code>'XProxySettings.proxySettings'</code> for
* {@link ifc.system._XProxySettings} : </li>
* <p>It passes a Hash
table
with expected proxy settings as object
* <p>It passes a Hash
Map
with expected proxy settings as object
* relation "XProxySettings.proxySettings", to verify results. The expected
* settings are taken from parameters. The following parameters are recognized:
* <ul>
...
...
@@ -96,7 +96,7 @@ public class SOffice52ProxySettings extends TestCase {
TestEnvironment
tEnv
=
new
TestEnvironment
(
oObj
);
// extracting parameters to proxy settings
Hash
table
proxySettings
=
new
Hashtable
(
12
);
Hash
Map
proxySettings
=
new
HashMap
(
12
);
String
prefix
=
"test.proxy.soffice52."
;
...
...
qadevOOo/tests/java/mod/_proxyset/SystemProxySettings.java
Dosyayı görüntüle @
33ec740d
...
...
@@ -19,7 +19,7 @@
package
mod
.
_proxyset
;
import
java.io.PrintWriter
;
import
java.util.Hash
table
;
import
java.util.Hash
Map
;
import
lib.TestCase
;
import
lib.TestEnvironment
;
...
...
@@ -59,7 +59,7 @@ public class SystemProxySettings extends TestCase {
* <ul>
* <li> <code>'XProxySettings.proxySettings'</code> for
* {@link ifc.system._XProxySettings} : </li>
* <p>It passes a Hash
table
with expected proxy settings as object
* <p>It passes a Hash
Map
with expected proxy settings as object
* relation "XProxySettings.proxySettings", to verify results. The expected
* settings are taken from parameters. The following parameters are recognized:
* <ul>
...
...
@@ -98,7 +98,7 @@ public class SystemProxySettings extends TestCase {
TestEnvironment
tEnv
=
new
TestEnvironment
(
oObj
);
// extracting parameters to proxy settings
Hash
table
proxySettings
=
new
Hashtable
(
12
);
Hash
Map
proxySettings
=
new
HashMap
(
12
);
String
prefix
=
"test.proxy.system."
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment