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
f12e8d66
Kaydet (Commit)
f12e8d66
authored
Mar 06, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326576 Useless call
Change-Id: I1d51b96042f229de42ed26d90ecc2a070eb5b3a6
üst
278bc4ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
28 deletions
+1
-28
MultiPropertyTest.java
qadevOOo/runner/lib/MultiPropertyTest.java
+1
-28
No files found.
qadevOOo/runner/lib/MultiPropertyTest.java
Dosyayı görüntüle @
f12e8d66
...
...
@@ -69,33 +69,6 @@ public class MultiPropertyTest extends MultiMethodTest
* in MultiMethodTest code.
*/
public
XPropertySet
oObj
;
protected
boolean
optionalService
=
false
;
/**
* Overrides super.before() to check the service is supported by the object.
*/
@Override
protected
void
before
()
{
XServiceInfo
xInfo
=
UnoRuntime
.
queryInterface
(
XServiceInfo
.
class
,
oObj
);
optionalService
=
entry
.
isOptional
;
String
theService
=
getTestedClassName
();
if
(
xInfo
!=
null
&&
!
xInfo
.
supportsService
(
theService
))
{
log
.
println
(
"Service "
+
theService
+
" not available"
);
if
(
optionalService
)
{
log
.
println
(
"This is OK since it is optional"
);
}
else
{
Status
.
failed
(
theService
+
" is not supported"
);
}
}
}
/**
* Overrides MultiMethodTest.invokeTestMethod(). If the test for the
...
...
@@ -154,7 +127,7 @@ public class MultiPropertyTest extends MultiMethodTest
final
boolean
bHasProperty
=
info
.
hasPropertyByName
(
propName
);
if
(!
bHasProperty
)
{
if
(
isOptional
(
propName
)
||
optionalService
)
if
(
isOptional
(
propName
)
||
entry
.
isOptional
)
{
// skipping optional property test
log
.
println
(
"Property '"
+
propName
+
"' is optional and not supported"
);
...
...
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