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
7650a60b
Kaydet (Commit)
7650a60b
authored
Şub 03, 2003
tarafından
Stephan Wunderlich
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CHG: removed obsolete lines
üst
d9199f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
_XEnumeration.java
qadevOOo/tests/java/ifc/container/_XEnumeration.java
+7
-15
No files found.
qadevOOo/tests/java/ifc/container/_XEnumeration.java
Dosyayı görüntüle @
7650a60b
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: _XEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:08:39
$
* last change:$Date: 2003-0
2-03 16:42:43
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -69,6 +69,9 @@ import com.sun.star.uno.XInterface;
import
lib.MultiMethodTest
;
import
lib.Status
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
/**
* Testing <code>com.sun.star.container.XEnumeration</code>
* interface methods :
...
...
@@ -99,18 +102,7 @@ public class _XEnumeration extends MultiMethodTest {
*/
public
void
_hasMoreElements
()
{
boolean
result
=
true
;
// this method runs twice so look if holder.Enum is empty
if
(
Enum
==
null
)
{
Enum
=
(
XEnumerationAccess
)
tEnv
.
getObjRelation
(
"ENUM"
);
if
(
Enum
==
null
)
{
// SKIPPED.FAILED - the ObjectRelation is not available
Status
.
failed
(
"ObjectRelation('ENUM') XEnumerationAccess n.a."
);
return
;
}
else
{
// create an enumeration
oObj
=
Enum
.
createEnumeration
();
}
}
log
.
println
(
"get all elements"
);
while
(
oObj
.
hasMoreElements
()
)
{
try
{
...
...
@@ -146,7 +138,7 @@ public class _XEnumeration extends MultiMethodTest {
log
.
println
(
"additional call must throw NoSuchElementException"
);
try
{
XInterface
oAny
=
(
XInterface
)
oObj
.
nextElement
();
Object
oAny
=
oObj
.
nextElement
();
log
.
println
(
"nextElement: no exception!"
);
result
=
false
;
}
catch
(
WrappedTargetException
e
)
{
...
...
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