Skip to content
Snippets Groups Projects
Commit d7aa0462 authored by Joshua Gill's avatar Joshua Gill
Browse files

Fixing Tests

parent 273e2385
Branches
No related tags found
No related merge requests found
......@@ -2,8 +2,12 @@ package com.example.clientproject;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.jdbc.Sql;
@SpringBootTest
@Sql(scripts={"/schema-test-h2.sql","/script-test-h2.sql"})
@ActiveProfiles("h2")
class ClientProjectApplicationTests {
@Test
......
......@@ -5,6 +5,8 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.web.servlet.MockMvc;
import static org.hamcrest.Matchers.containsString;
......@@ -14,6 +16,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@SpringBootTest
@Sql(scripts={"/schema-test-h2.sql","/script-test-h2.sql"})
@ActiveProfiles("h2")
@AutoConfigureMockMvc
public class FavouriteBusiness {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment