File tree Expand file tree Collapse file tree
core-java-modules/core-java-lang-3/src/test/java/com/baeldung/transientkw Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,5 +89,14 @@ testing-modules/report-*.json
8989
9090libraries-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
Original file line number Diff line number Diff line change 33import static org .junit .jupiter .api .Assertions .assertEquals ;
44import static org .junit .jupiter .api .Assertions .assertNull ;
55
6+ import java .io .File ;
7+
8+ import org .junit .jupiter .api .AfterAll ;
69import org .junit .jupiter .api .Test ;
710
811class 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}
You can’t perform that action at this time.
0 commit comments