From a2e05edb7acc6a181763c905942c8a0066a20ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20F=C3=BCrderer?= Date: Thu, 25 Jun 2020 17:29:13 +0200 Subject: [PATCH] Try to activate JUnit - not working yet --- prototype/build.gradle | 7 +++++++ .../action/booking/CreateBookingTest.java | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 prototype/src/main/java/org/hso/ecommerce/action/booking/CreateBookingTest.java diff --git a/prototype/build.gradle b/prototype/build.gradle index 8d138b9..e73f072 100644 --- a/prototype/build.gradle +++ b/prototype/build.gradle @@ -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() +} diff --git a/prototype/src/main/java/org/hso/ecommerce/action/booking/CreateBookingTest.java b/prototype/src/main/java/org/hso/ecommerce/action/booking/CreateBookingTest.java new file mode 100644 index 0000000..b81105c --- /dev/null +++ b/prototype/src/main/java/org/hso/ecommerce/action/booking/CreateBookingTest.java @@ -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"); + } + +}