Try to activate JUnit - not working yet

This commit is contained in:
Lukas Fürderer 2020-06-25 17:29:13 +02:00
parent 624ade2032
commit a2e05edb7a
2 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,7 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.7.RELEASE")
@ -30,6 +31,8 @@ dependencies {
implementation 'org.xerial:sqlite-jdbc:3.31.1'
implementation 'org.yaml:snakeyaml:1.26'
testCompile("org.springframework.boot:spring-boot-starter-test")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
}
group 'org.hso'
@ -38,3 +41,7 @@ version '0.1.0'
bootRun {
args = ["--spring.profiles.active=dev --spring.config.location=classpath:/application.properties"]
}
test {
useJUnitPlatform()
}

View File

@ -0,0 +1,14 @@
package org.hso.ecommerce.action.booking;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class CreateBookingTest {
@Test
void test() {
fail("Not yet implemented");
}
}