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
a3a89c15
Kaydet (Commit)
a3a89c15
authored
Eki 16, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename state to bSuccessful in Assurance
Change-Id: Ifc86275163a78dd1a61b207f3c6c55d9bf5902d7
üst
c429df73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Assurance.java
qadevOOo/runner/complexlib/Assurance.java
+2
-2
ComplexTestCase.java
qadevOOo/runner/complexlib/ComplexTestCase.java
+5
-5
No files found.
qadevOOo/runner/complexlib/Assurance.java
Dosyayı görüntüle @
a3a89c15
...
@@ -27,7 +27,7 @@ public class Assurance
...
@@ -27,7 +27,7 @@ public class Assurance
public
static
final
boolean
CONTINUE
=
true
;
public
static
final
boolean
CONTINUE
=
true
;
/** State of the current test method **/
/** State of the current test method **/
protected
boolean
state
=
true
;
protected
boolean
bSuccessful
=
true
;
/** The message if the test did fail **/
/** The message if the test did fail **/
protected
String
message
=
null
;
protected
String
message
=
null
;
...
@@ -106,7 +106,7 @@ public class Assurance
...
@@ -106,7 +106,7 @@ public class Assurance
* @param cont Continue with test method, even if s is false.
* @param cont Continue with test method, even if s is false.
*/
*/
protected
void
assure
(
String
msg
,
boolean
s
,
boolean
cont
)
{
protected
void
assure
(
String
msg
,
boolean
s
,
boolean
cont
)
{
state
&=
s
;
bSuccessful
&=
s
;
if
(!
s
)
{
if
(!
s
)
{
message
+=
msg
+
"\r\n"
;
message
+=
msg
+
"\r\n"
;
if
(!
cont
)
{
if
(!
cont
)
{
...
...
qadevOOo/runner/complexlib/ComplexTestCase.java
Dosyayı görüntüle @
a3a89c15
...
@@ -65,14 +65,14 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest
...
@@ -65,14 +65,14 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest
catch
(
java
.
lang
.
reflect
.
InvocationTargetException
e
)
catch
(
java
.
lang
.
reflect
.
InvocationTargetException
e
)
{
{
Throwable
t
=
e
.
getTargetException
();
Throwable
t
=
e
.
getTargetException
();
if
(!(
t
instanceof
RuntimeException
)
||
state
)
if
(!(
t
instanceof
RuntimeException
)
||
bSuccessful
)
{
{
log
.
println
(
t
.
toString
());
log
.
println
(
t
.
toString
());
if
(
message
==
null
)
if
(
message
==
null
)
{
{
message
=
"Exception in before() method.\n\r"
+
t
.
getMessage
();
message
=
"Exception in before() method.\n\r"
+
t
.
getMessage
();
}
}
state
=
false
;
bSuccessful
=
false
;
t
.
printStackTrace
((
PrintWriter
)
log
);
t
.
printStackTrace
((
PrintWriter
)
log
);
}
}
}
}
...
@@ -99,7 +99,7 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest
...
@@ -99,7 +99,7 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest
DescEntry
subEntry
=
_entry
.
SubEntries
[
i
];
DescEntry
subEntry
=
_entry
.
SubEntries
[
i
];
if
(
m_bBeforeCalled
)
if
(
m_bBeforeCalled
)
{
{
state
=
true
;
bSuccessful
=
true
;
message
=
""
;
message
=
""
;
}
}
else
else
...
@@ -200,8 +200,8 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest
...
@@ -200,8 +200,8 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest
subEntry
.
ErrorMsg
=
(
msg
==
null
?
""
:
msg
);
subEntry
.
ErrorMsg
=
(
msg
==
null
?
""
:
msg
);
continue
;
continue
;
}
}
subEntry
.
State
=
(
state
?
"PASSED.OK"
:
message
);
subEntry
.
State
=
(
bSuccessful
?
"PASSED.OK"
:
message
);
subEntry
.
hasErrorMsg
=
!
state
;
subEntry
.
hasErrorMsg
=
!
bSuccessful
;
subEntry
.
ErrorMsg
=
message
;
subEntry
.
ErrorMsg
=
message
;
}
}
}
}
...
...
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