Skip to content

Commit

Permalink
Add getter for test identifiers in test plan
Browse files Browse the repository at this point in the history
This commit adds a getter for TestPlan's
'allIdentifiers' field.

Issue: #111
  • Loading branch information
stoyanK7 authored and marcphilipp committed Apr 14, 2023
1 parent bc789a6 commit 4d0b01a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ public Set<TestIdentifier> getDescendants(TestIdentifier parent) {
return unmodifiableSet(result);
}

public Map<UniqueId, TestIdentifier> getAllIdentifiers() {
return this.allIdentifiers;
}

/**
* Return whether this test plan contains any tests.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

package org.junit.platform.launcher.core;

import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down Expand Up @@ -113,6 +114,11 @@ public Set<TestIdentifier> getDescendants(TestIdentifier parent) {
return delegate.getDescendants(parent);
}

@Override
public Map<UniqueId, TestIdentifier> getAllIdentifiers() {
return delegate.getAllIdentifiers();
}

@Override
public boolean containsTests() {
return delegate.containsTests();
Expand Down

0 comments on commit 4d0b01a

Please sign in to comment.