JAVA-3297: Cleanup un-committed or un-ignored artifacts (#11068)
This commit is contained in:
parent
e21a90c6d8
commit
232cef9d35
|
@ -89,5 +89,14 @@ testing-modules/report-*.json
|
|||
|
||||
libraries-2/*.db
|
||||
|
||||
apache-spark/data/output
|
||||
logs/
|
||||
libraries-data-io/*.docx
|
||||
persistence-modules/spring-hibernate-5/com.*
|
||||
spring-boot-modules/spring-boot-react/frontend/build
|
||||
spring-boot-modules/spring-boot-react/frontend/node
|
||||
spring-boot-modules/spring-boot-react/frontend/yarn.lock
|
||||
spring-boot-modules/spring-boot-properties-3/*.log
|
||||
|
||||
# SDKMan
|
||||
.sdkmanrc
|
||||
.sdkmanrc
|
|
@ -3,6 +3,9 @@ package com.baeldung.transientkw;
|
|||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class TransientUnitTest {
|
||||
|
@ -31,5 +34,11 @@ class TransientUnitTest {
|
|||
|
||||
assertEquals("Fiction", book2.getBookCategory());
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
public static void cleanup() {
|
||||
File file = new File(BookSerDe.fileName);
|
||||
file.deleteOnExit();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue