-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from lamngockhuong/feature.new.add_ut
Add UT example
- Loading branch information
Showing
4 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
Empty file.
9 changes: 1 addition & 8 deletions
9
barcode/src/test/kotlin/com/ngockhuong/barcode/BarcodeApplicationTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
15 changes: 15 additions & 0 deletions
15
barcode/src/test/kotlin/com/ngockhuong/barcode/qrcode/QRCodeServiceTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |
9 changes: 1 addition & 8 deletions
9
some-utils/src/test/kotlin/com/ngockhuong/someutils/SomeUtilsApplicationTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |