├── .gitignore ├── README.md ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── posts ├── db_cleanup_vs │ └── README.md └── tx_annotation_in_test │ ├── README.md │ └── images │ ├── code1.png │ ├── code3_1.png │ ├── intro.png │ ├── result1_1.png │ ├── result1_2.png │ ├── result2_1.png │ ├── result2_2.png │ ├── result3_1.png │ ├── result3_2.png │ ├── result4_1.png │ ├── result4_2.png │ └── spring-team.png ├── settings.gradle.kts └── src ├── main ├── kotlin │ └── com │ │ └── jojoldu │ │ └── testinaction │ │ ├── Application.kt │ │ ├── entity │ │ ├── course │ │ │ └── Course.kt │ │ └── teacher │ │ │ ├── Student.kt │ │ │ ├── StudentRepository.kt │ │ │ ├── Teacher.kt │ │ │ └── TeacherRepository.kt │ │ └── service │ │ └── teacher │ │ ├── NoTxTeacherService.kt │ │ ├── TeacherEvent.kt │ │ ├── TeacherEventListener.kt │ │ └── TeacherService.kt └── resources │ └── application.yml └── test └── kotlin └── com └── jojoldu └── testinaction ├── ApplicationTests.kt ├── CleanUp.kt ├── entity ├── course │ └── CourseTest.kt └── teacher │ └── cleanup │ ├── DeleteTest.kt │ └── TruncateTest.kt └── service └── teacher ├── OriginalTest1.kt ├── OriginalTest2.kt ├── OriginalTest3.kt ├── OriginalTest4.kt ├── TxRollbackTest1.kt ├── TxRollbackTest2.kt ├── TxRollbackTest3.kt ├── TxRollbackTest4.kt └── TxRollbackTest5.kt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/README.md -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/gradlew.bat -------------------------------------------------------------------------------- /posts/db_cleanup_vs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/db_cleanup_vs/README.md -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/README.md -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/code1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/code1.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/code3_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/code3_1.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/intro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/intro.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result1_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result1_1.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result1_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result1_2.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result2_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result2_1.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result2_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result2_2.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result3_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result3_1.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result3_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result3_2.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result4_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result4_1.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/result4_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/result4_2.png -------------------------------------------------------------------------------- /posts/tx_annotation_in_test/images/spring-team.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/posts/tx_annotation_in_test/images/spring-team.png -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/settings.gradle.kts -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/Application.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/Application.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/entity/course/Course.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/entity/course/Course.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/entity/teacher/Student.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/entity/teacher/Student.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/entity/teacher/StudentRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/entity/teacher/StudentRepository.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/entity/teacher/Teacher.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/entity/teacher/Teacher.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/entity/teacher/TeacherRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/entity/teacher/TeacherRepository.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/service/teacher/NoTxTeacherService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/service/teacher/NoTxTeacherService.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/service/teacher/TeacherEvent.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/service/teacher/TeacherEvent.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/service/teacher/TeacherEventListener.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/service/teacher/TeacherEventListener.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/jojoldu/testinaction/service/teacher/TeacherService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/kotlin/com/jojoldu/testinaction/service/teacher/TeacherService.kt -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/ApplicationTests.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/ApplicationTests.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/CleanUp.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/CleanUp.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/entity/course/CourseTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/entity/course/CourseTest.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/entity/teacher/cleanup/DeleteTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/entity/teacher/cleanup/DeleteTest.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/entity/teacher/cleanup/TruncateTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/entity/teacher/cleanup/TruncateTest.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest1.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest2.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest3.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest4.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/OriginalTest4.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest1.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest1.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest2.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest2.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest3.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest3.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest4.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest4.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest5.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jojoldu/spring-boot-kotlin-test-in-action/HEAD/src/test/kotlin/com/jojoldu/testinaction/service/teacher/TxRollbackTest5.kt --------------------------------------------------------------------------------