Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-backend
Commits
420073ca
Commit
420073ca
authored
1 year ago
by
Lückemeyer
Browse files
Options
Download
Email Patches
Plain Diff
added resilience against incomplete test results
parent
506515cb
master
amg-dev-volumes
amg-svn+ssh
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hftstuttgart/dtabackend/utils/CompetencyAssessmentUtil.java
+6
-4
...tstuttgart/dtabackend/utils/CompetencyAssessmentUtil.java
with
6 additions
and
4 deletions
+6
-4
src/main/java/de/hftstuttgart/dtabackend/utils/CompetencyAssessmentUtil.java
+
6
-
4
View file @
420073ca
...
...
@@ -45,11 +45,13 @@ public class CompetencyAssessmentUtil {
for
(
Result
currentResult:
resultSummary
.
results
)
{
if
(
currentResult
.
state
==
Result
.
State
.
SUCCESS
.
ordinal
())
{
TestCompetencyProfile
currentProfile
=
new
TestCompetencyProfile
();
currentProfile
.
testPackageName
=
currentResult
.
packageName
;
currentProfile
.
testClassName
=
currentResult
.
className
;
currentProfile
.
testName
=
currentResult
.
name
;
currentProfile
.
testPackageName
=
(
currentResult
.
packageName
!=
null
)?
currentResult
.
packageName
:
""
;
currentProfile
.
testClassName
=
(
currentResult
.
className
!=
null
)?
currentResult
.
className
:
""
;
currentProfile
.
testName
=
(
currentResult
.
name
!=
null
)?
currentResult
.
name
:
""
;
int
testIndex
=
testCompetencyProfiles
.
indexOf
(
currentProfile
);
sumSuccessful
=
TestCompetencyProfile
.
competencySum
(
sumSuccessful
,
testCompetencyProfiles
.
get
(
testIndex
).
competencyAssessments
);
if
(
testIndex
!=-
1
)
{
sumSuccessful
=
TestCompetencyProfile
.
competencySum
(
sumSuccessful
,
testCompetencyProfiles
.
get
(
testIndex
).
competencyAssessments
);
}
}
}
return
sumSuccessful
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets