Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#33: Split TestDescriptor into two interfaces
- Loading branch information
1 parent
26cd930
commit 79c6f9f
Showing
5 changed files
with
73 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
junit-engine-api/src/main/java/org/junit/gen5/engine/MutableTestDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
/* | |||
* Copyright 2015 the original author or authors. | |||
* | |||
* All rights reserved. This program and the accompanying materials are | |||
* made available under the terms of the Eclipse Public License v1.0 which | |||
* accompanies this distribution and is available at | |||
* | |||
* http://www.eclipse.org/legal/epl-v10.html | |||
*/ | |||
|
|||
package org.junit.gen5.engine; | |||
|
|||
import java.util.Optional; | |||
import java.util.Set; | |||
|
|||
/** | |||
* @since 5.0 | |||
*/ | |||
public interface MutableTestDescriptor extends TestDescriptor { | |||
|
|||
@Override | |||
Optional<MutableTestDescriptor> getParent(); | |||
|
|||
void setParent(MutableTestDescriptor parent); | |||
|
|||
@Override | |||
Set<MutableTestDescriptor> getChildren(); | |||
|
|||
void addChild(MutableTestDescriptor descriptor); | |||
|
|||
void removeChild(MutableTestDescriptor descriptor); | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters