Skip to content

Commit

Permalink
Merge pull request #11 from lamngockhuong/feature.new.add_ut
Browse files Browse the repository at this point in the history
Add UT example
  • Loading branch information
khuongln-1346 authored Nov 21, 2023
2 parents e6da196 + efb6e4e commit cc7007e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
Empty file modified barcode/gradlew
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -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)
}
}
Original file line number Diff line number Diff line change
@@ -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 {}

0 comments on commit cc7007e

Please sign in to comment.