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
ba66332e
Kaydet (Commit)
ba66332e
authored
Şub 03, 2003
tarafından
Stephan Wunderlich
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CHG: using AnyConverter instead of simple cast
üst
a4a61e52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
14 deletions
+29
-14
ScDataPilotFieldObj.java
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
+16
-6
ScDataPilotFieldsObj.java
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java
+13
-8
No files found.
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
Dosyayı görüntüle @
ba66332e
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScDataPilotFieldObj.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:34
$
* last change:$Date: 2003-0
2-03 10:40:51
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -80,6 +80,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
/**
* Test for object which is represented by service
* <code>com.sun.star.sheet.DataPilotField</code>. <p>
...
...
@@ -142,8 +145,7 @@ public class ScDataPilotFieldObj extends TestCase {
* @see com.sun.star.sheet.XDataPilotTablesSupplier
* @see com.sun.star.sheet.XDataPilotDescriptor
*/
public
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
throws
StatusException
{
protected
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
{
Object
oInterface
=
null
;
XInterface
oObj
=
null
;
...
...
@@ -161,13 +163,17 @@ public class ScDataPilotFieldObj extends TestCase {
XIndexAccess
oIndexAccess
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
xSpreadsheets
);
try
{
oSheet
=
(
XSpreadsheet
)
oIndexAccess
.
getByIndex
(
0
);
oSheet
=
(
XSpreadsheet
)
AnyConverter
.
toObject
(
new
Type
(
XSpreadsheet
.
class
),
oIndexAccess
.
getByIndex
(
0
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
try
{
...
...
@@ -205,13 +211,17 @@ public class ScDataPilotFieldObj extends TestCase {
XIndexAccess
IA
=
DPDsc
.
getDataPilotFields
();
try
{
oObj
=
(
XInterface
)
IA
.
getByIndex
(
0
);
oObj
=
(
XInterface
)
AnyConverter
.
toObject
(
new
Type
(
XInterface
.
class
),
IA
.
getByIndex
(
0
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get data pilot field"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get data pilot field"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get data pilot field"
,
e
);
}
log
.
println
(
"Creating object - "
+
...
...
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java
Dosyayı görüntüle @
ba66332e
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScDataPilotFieldsObj.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:33
$
* last change:$Date: 2003-0
2-03 10:44:41
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -80,6 +80,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
/**
* Test for object which is represented by service
* <code>com.sun.star.sheet.DataPilotFields</code>. <p>
...
...
@@ -138,8 +141,7 @@ public class ScDataPilotFieldsObj extends TestCase {
* @see com.sun.star.sheet.XDataPilotTablesSupplier
* @see com.sun.star.sheet.XDataPilotDescriptor
*/
public
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
throws
StatusException
{
protected
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
{
Object
oInterface
=
null
;
XInterface
oObj
=
null
;
...
...
@@ -158,13 +160,17 @@ public class ScDataPilotFieldsObj extends TestCase {
XIndexAccess
oIndexAccess
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
xSpreadsheets
);
try
{
oSheet
=
(
XSpreadsheet
)
oIndexAccess
.
getByIndex
(
0
);
oSheet
=
(
XSpreadsheet
)
AnyConverter
.
toObject
(
new
Type
(
XSpreadsheet
.
class
),
oIndexAccess
.
getByIndex
(
0
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
try
{
...
...
@@ -207,6 +213,4 @@ public class ScDataPilotFieldsObj extends TestCase {
return
tEnv
;
}
}
}
\ No newline at end of file
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