diff --git a/barcode/gradlew b/barcode/gradlew old mode 100644 new mode 100755 diff --git a/barcode/src/test/kotlin/com/ngockhuong/barcode/BarcodeApplicationTests.kt b/barcode/src/test/kotlin/com/ngockhuong/barcode/BarcodeApplicationTests.kt index b836a1e..030db50 100644 --- a/barcode/src/test/kotlin/com/ngockhuong/barcode/BarcodeApplicationTests.kt +++ b/barcode/src/test/kotlin/com/ngockhuong/barcode/BarcodeApplicationTests.kt @@ -1,13 +1,6 @@ package com.ngockhuong.barcode -import org.junit.jupiter.api.Test import org.springframework.boot.test.context.SpringBootTest @SpringBootTest -class BarcodeApplicationTests { - - @Test - fun contextLoads() { - } - -} +class BarcodeApplicationTests {} diff --git a/barcode/src/test/kotlin/com/ngockhuong/barcode/qrcode/QRCodeServiceTest.kt b/barcode/src/test/kotlin/com/ngockhuong/barcode/qrcode/QRCodeServiceTest.kt new file mode 100644 index 0000000..1d9ffff --- /dev/null +++ b/barcode/src/test/kotlin/com/ngockhuong/barcode/qrcode/QRCodeServiceTest.kt @@ -0,0 +1,15 @@ +package com.ngockhuong.barcode.qrcode + +import org.junit.jupiter.api.Test + +class QRCodeServiceTest { + @Test + fun `test generateQRCode success`() { + val qrCodeService = QRCodeService() + val content = "Hello World" + val width = 100 + val height = 100 + val qrCode = qrCodeService.generateQRCode(content, width, height) + assert(qrCode != null) + } +} diff --git a/some-utils/src/test/kotlin/com/ngockhuong/someutils/SomeUtilsApplicationTests.kt b/some-utils/src/test/kotlin/com/ngockhuong/someutils/SomeUtilsApplicationTests.kt index e2c28a7..504071a 100644 --- a/some-utils/src/test/kotlin/com/ngockhuong/someutils/SomeUtilsApplicationTests.kt +++ b/some-utils/src/test/kotlin/com/ngockhuong/someutils/SomeUtilsApplicationTests.kt @@ -1,13 +1,6 @@ package com.ngockhuong.someutils -import org.junit.jupiter.api.Test import org.springframework.boot.test.context.SpringBootTest @SpringBootTest -class SomeUtilsApplicationTests { - - @Test - fun contextLoads() { - } - -} +class SomeUtilsApplicationTests {}