Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ print_usage() {
test
Run tests locally.

run
Run the application locally.

stop
Stop Docker containers.

Expand Down Expand Up @@ -174,6 +177,10 @@ case $COMMAND in
run_tests
;;

run)
mvn spring-boot:run -Pdev
;;

stop)
stop_all
;;
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-flyway</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package fi.hsl.jore4.auth

import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Tag
import org.junit.jupiter.api.Test

@Tag("unitTest")
class FlywayAutoConfigurationPresentTest {

@Test
fun `flyway auto-configuration class is on the classpath`() {
val clazz = Class.forName("org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration")
assertNotNull(clazz, "FlywayAutoConfiguration must be on the classpath via spring-boot-starter-flyway")
}
}
Loading