Java 类org.junit.gen5.api.AfterEach 实例源码
项目:evilmusic
文件:PlaylistRESTTest.java
@AfterEach
void afterEach() throws IOException {
for(Playlist p : playlistsToCleanup) {
if(p != null) {
PlaylistRESTCalls.deletePlaylist(p.getID());
}
}
playlistsToCleanup.clear();
}
项目:evilmusic
文件:QueueRESTTest.java
@AfterEach
public void tearDown() {
for(Queue q : queuesToCleanup) {
if(q != null) {
try {
QueueRESTCalls.deleteQueue(q.getID());
} catch(Exception e) {
e.printStackTrace();
}
}
}
}
项目:pitest-junit-5-plugin
文件:JUnit5IntegrationTest.java
@AfterEach
void afterEachTest(final TestInfo testInfo) {
LOGGER.info("duration of test '{}' {}ms", testInfo.getDisplayName(),
System.currentTimeMillis() - startTime);
}
项目:lab-junitlambda
文件:_0_BasicFeatures.java
@AfterEach
public void tearDownTestMethod() {
print("Executed after each test in this class.");
}
项目:lab-junitlambda
文件:_8_Injection.java
@AfterEach
void outputTestName(@TestName String name) {
// injection also works for 'BeforeEach' and 'AfterEach' methods
print("Current test: %s", name);
}
项目:evilmusic
文件:EqualizerRESTTest.java
@AfterEach
public void tearDown() {
EqualizerRESTCalls.deleteAllEQs();
}