Skip to content

Commit a490f26

Browse files
authored
JAVA-3297: Cleanup un-committed or un-ignored artifacts (eugenp#11068)
1 parent 1010d9f commit a490f26

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,14 @@ testing-modules/report-*.json
8989

9090
libraries-2/*.db
9191

92+
apache-spark/data/output
93+
logs/
94+
libraries-data-io/*.docx
95+
persistence-modules/spring-hibernate-5/com.*
96+
spring-boot-modules/spring-boot-react/frontend/build
97+
spring-boot-modules/spring-boot-react/frontend/node
98+
spring-boot-modules/spring-boot-react/frontend/yarn.lock
99+
spring-boot-modules/spring-boot-properties-3/*.log
100+
92101
# SDKMan
93-
.sdkmanrc
102+
.sdkmanrc

core-java-modules/core-java-lang-3/src/test/java/com/baeldung/transientkw/TransientUnitTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertNull;
55

6+
import java.io.File;
7+
8+
import org.junit.jupiter.api.AfterAll;
69
import org.junit.jupiter.api.Test;
710

811
class TransientUnitTest {
@@ -31,5 +34,11 @@ void givenFinalTransient_whenSerDe_thenValuePersisted() throws Exception {
3134

3235
assertEquals("Fiction", book2.getBookCategory());
3336
}
37+
38+
@AfterAll
39+
public static void cleanup() {
40+
File file = new File(BookSerDe.fileName);
41+
file.deleteOnExit();
42+
}
3443

3544
}

0 commit comments

Comments
 (0)