use of org.junit.platform.fakes.TestDescriptorStub in project junit5 by junit-team.
the class SummaryGenerationTests method createTestIdentifier.
private TestIdentifier createTestIdentifier(String uniqueId) {
var identifier = TestIdentifier.from(new TestDescriptorStub(UniqueId.root("test", uniqueId), uniqueId));
testPlan.addInternal(identifier);
return identifier;
}
use of org.junit.platform.fakes.TestDescriptorStub in project junit5 by junit-team.
the class TestDescriptorTests method isRootWithParent.
@Test
void isRootWithParent() {
TestDescriptor child = new TestDescriptorStub(UniqueId.root("child", "child"), "child");
child.setParent(new TestDescriptorStub(UniqueId.root("root", "root"), "root"));
assertFalse(child.isRoot());
}
Aggregations