Skip to content

Instantly share code, notes, and snippets.

View joonseolee's full-sized avatar
🎯
Focusing

Joonseo Lee joonseolee

🎯
Focusing
View GitHub Profile
if __name__ == '__main__':
cal()
@joonseolee
joonseolee / PersonControllerTest.kt
Last active August 24, 2024 09:52
testcontainer kotlin + mysql example
@Testcontainers
@Import(TestcontainersConfiguration::class)
class PersonControllerTest {
@Autowired
private lateinit var personRepository: PersonRepository
@Test
fun given_when_then() {
val persons = personRepository.findAll()
assertThat(persons).isEmpty()