-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also run samples via test runner in java-sample
- Loading branch information
1 parent
efccdd2
commit c07d9a6
Showing
5 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
24 changes: 24 additions & 0 deletions
24
java-sample/src/test/java/io/github/simonscholz/QrCodeTest.java
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,24 @@ | ||
package io.github.simonscholz; | ||
|
||
import io.github.simonscholz.qrcode.QrCodeApi; | ||
import io.github.simonscholz.qrcode.QrCodeFactory; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.io.TempDir; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Path; | ||
|
||
public class QrCodeTest { | ||
|
||
@Test | ||
public void testMain(@TempDir Path tempDir) throws IOException { | ||
QrCodeApi qrCodeApi = QrCodeFactory.createQrCodeApi(); | ||
Main.generateSamples(qrCodeApi, tempDir.toAbsolutePath().toString()); | ||
} | ||
|
||
@Test | ||
public void testQrCodeTypesMain(@TempDir Path tempDir) throws IOException { | ||
QrCodeApi qrCodeApi = QrCodeFactory.createQrCodeApi(); | ||
QrCodeTypesMain.generateSamples(qrCodeApi, tempDir.toAbsolutePath().toString()); | ||
} | ||
} |