Skip to content

Commit

Permalink
Formatting for Java code
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Oct 10, 2024
1 parent 3f9fd44 commit a8d0bad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@ private Map<TestData, List<TestData>> matchTestCasesToSuites_locked(
// In all cases we're looking for the "class" segment, pull the UniqueID and map that from the
// results
List<UniqueId.Segment> segments = testCase.getId().getUniqueIdObject().getSegments();

if (segments.size() == 2) {
parent = results.get(testCase.getId().getUniqueIdObject());
}
else if (segments.size() == 3 || segments.size() == 5) {
} else if (segments.size() == 3 || segments.size() == 5) {
// get class / test data up one level
parent =
testCase
Expand Down Expand Up @@ -164,6 +163,8 @@ private List<TestData> findTestCases_locked() {
// are identified by the fact that they have no child test cases in the
// test plan, or they are marked as tests.
TestIdentifier id = result.getId();
System.out.println(id);
System.out.println(testPlan.getChildren(id));
return id.getSource() != null || id.isTest() || testPlan.getChildren(id).isEmpty();
})
.collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,22 @@ public Instant getStarted() {

@Override
public String toString() {
return "TestData{" +
"id=" + id +
", reportEntries=" + reportEntries +
", started=" + started +
", finished=" + finished +
", reason='" + reason + '\'' +
", result=" + result +
", dynamic=" + dynamic +
'}';
return "TestData{"
+ "id="
+ id
+ ", reportEntries="
+ reportEntries
+ ", started="
+ started
+ ", finished="
+ finished
+ ", reason='"
+ reason
+ '\''
+ ", result="
+ result
+ ", dynamic="
+ dynamic
+ '}';
}
}

0 comments on commit a8d0bad

Please sign in to comment.