2 Commits

Author SHA1 Message Date
0edb9572b6 move Tests to the correct location 2020-06-25 17:42:03 +02:00
a2e05edb7a Try to activate JUnit - not working yet 2020-06-25 17:29:13 +02:00
2 changed files with 28 additions and 1 deletions

View File

@ -1,6 +1,7 @@
buildscript { buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
jcenter()
} }
dependencies { dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.7.RELEASE") classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.7.RELEASE")
@ -29,7 +30,11 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-devtools' implementation 'org.springframework.boot:spring-boot-devtools'
implementation 'org.xerial:sqlite-jdbc:3.31.1' implementation 'org.xerial:sqlite-jdbc:3.31.1'
implementation 'org.yaml:snakeyaml:1.26' implementation 'org.yaml:snakeyaml:1.26'
testCompile("org.springframework.boot:spring-boot-starter-test") //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'
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
} }
group 'org.hso' group 'org.hso'
@ -38,3 +43,11 @@ version '0.1.0'
bootRun { bootRun {
args = ["--spring.profiles.active=dev --spring.config.location=classpath:/application.properties"] args = ["--spring.profiles.active=dev --spring.config.location=classpath:/application.properties"]
} }
test {
useJUnitPlatform()
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
}

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");
}
}