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
1bb1fc06
Kaydet (Commit)
1bb1fc06
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
Change-Id: Idc757217b84812fa55efbcfc004abd02d0a78dc3
üst
4e1a015d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
32 deletions
+20
-32
ExceptionStatus.java
qadevOOo/runner/lib/ExceptionStatus.java
+1
-1
SimpleStatus.java
qadevOOo/runner/lib/SimpleStatus.java
+8
-20
Status.java
qadevOOo/runner/lib/Status.java
+11
-11
No files found.
qadevOOo/runner/lib/ExceptionStatus.java
Dosyayı görüntüle @
1bb1fc06
...
...
@@ -29,7 +29,7 @@ class ExceptionStatus extends Status {
* @param t the exception an activity terminated with.
*/
ExceptionStatus
(
Throwable
t
)
{
super
(
RunState
.
EXCEPTION
,
FAILED
);
super
(
RunState
.
EXCEPTION
,
false
/*bSuccessful*/
);
String
message
=
t
.
getMessage
();
if
(
message
!=
null
)
runStateString
=
message
;
...
...
qadevOOo/runner/lib/SimpleStatus.java
Dosyayı görüntüle @
1bb1fc06
...
...
@@ -25,19 +25,10 @@ package lib;
*/
class
SimpleStatus
{
/* Test states */
/**
* The constant represents FAILED state.
*/
public
static
final
boolean
FAILED
=
false
;
/**
* The field is holding state of the status.
*/
private
final
boolean
state
;
private
final
boolean
bSuccessful
;
/**
* The field is holding reason of the status.
...
...
@@ -53,8 +44,8 @@ class SimpleStatus {
/**
* The constructor initialize state and reason field.
*/
protected
SimpleStatus
(
RunState
runState
,
boolean
state
)
{
this
.
state
=
state
;
protected
SimpleStatus
(
RunState
runState
,
boolean
bSuccessful
)
{
this
.
bSuccessful
=
bSuccessful
;
this
.
runState
=
runState
;
if
(
runState
==
RunState
.
PASSED
)
{
runStateString
=
"PASSED"
;
...
...
@@ -70,17 +61,14 @@ class SimpleStatus {
/**
* The constructor initialize state and reason field.
*/
protected
SimpleStatus
(
String
runStateString
,
boolean
state
)
{
this
.
state
=
state
;
protected
SimpleStatus
(
String
runStateString
,
boolean
bSuccessful
)
{
this
.
bSuccessful
=
bSuccessful
;
this
.
runState
=
RunState
.
USER_DEFINED
;
this
.
runStateString
=
runStateString
;
}
/**
* getState implementation. Just returns the state field value.
*/
public
boolean
getState
()
{
return
state
;
public
boolean
isSuccessful
()
{
return
bSuccessful
;
}
/**
...
...
@@ -101,7 +89,7 @@ class SimpleStatus {
* Get the result: passed or failed.
*/
public
String
getStateString
()
{
if
(
state
)
if
(
bSuccessful
)
return
"OK"
;
return
"FAILED"
;
...
...
qadevOOo/runner/lib/Status.java
Dosyayı görüntüle @
1bb1fc06
...
...
@@ -39,16 +39,16 @@ public class Status extends SimpleStatus {
/**
* Construct a status: use runState and state
* @param runState either PASSED, SKIPPED, etc.
* @param
state
OK or FAILED.
* @param
bSuccessful
OK or FAILED.
*/
public
Status
(
RunState
runState
,
boolean
state
)
{
super
(
runState
,
state
);
public
Status
(
RunState
runState
,
boolean
bSuccessful
)
{
super
(
runState
,
bSuccessful
);
}
/**
* Construct a status: use own message and state.
* @param message An own message for the status.
* @param
state
OK or FAILED.
* @param
bSuccessful
OK or FAILED.
*/
public
Status
(
String
message
,
boolean
state
)
{
super
(
message
,
state
);
...
...
@@ -58,11 +58,11 @@ public class Status extends SimpleStatus {
* This is a factory method for creating a Status representing normal
* activity termination.
*
* @param
state
describes a test state (OK if state == true, FAILED
* @param
bSuccessful
describes a test state (OK if state == true, FAILED
* otherwise).
*/
public
static
Status
passed
(
boolean
state
)
{
return
new
Status
(
RunState
.
PASSED
,
state
);
public
static
Status
passed
(
boolean
bSuccessful
)
{
return
new
Status
(
RunState
.
PASSED
,
bSuccessful
);
}
/**
...
...
@@ -82,8 +82,8 @@ public class Status extends SimpleStatus {
* @param state describes a test state (OK if state == true, FAILED
* otherwise).
*/
public
static
Status
skipped
(
boolean
state
)
{
return
new
Status
(
RunState
.
SKIPPED
,
state
);
public
static
Status
skipped
(
boolean
bSuccessful
)
{
return
new
Status
(
RunState
.
SKIPPED
,
bSuccessful
);
}
...
...
@@ -95,7 +95,7 @@ public class Status extends SimpleStatus {
* @param reason describes why the activity failed
*/
public
static
Status
failed
(
final
String
reason
)
{
return
new
Status
(
reason
,
FAILED
);
return
new
Status
(
reason
,
false
/*bSuccessful*/
);
}
/**
...
...
@@ -122,7 +122,7 @@ public class Status extends SimpleStatus {
* Checks whether the status state is failed.
*/
public
boolean
isFailed
()
{
return
!
getState
();
return
!
isSuccessful
();
}
}
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