// Path: web/src/main/java/de/niklaskiefer/bnclWeb/MainApplication.java
// @SpringBootApplication
// @Import(ThymeleafConfig.class)
// public class MainApplication {
// 
// 
//     public static void main(String[] args) {
//         System.out.println("----Starting Demo Server-----");
//         SpringApplication.run(MainApplication.class, args);
//     }
// }


import de.niklaskiefer.bnclWeb.MainApplication;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
package de.niklaskiefer.bnclWeb.controller;




@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
// Path: web/src/main/java/de/niklaskiefer/bnclWeb/MainApplication.java
// @SpringBootApplication
// @Import(ThymeleafConfig.class)
// public class MainApplication {
// 
// 
//     public static void main(String[] args) {
//         System.out.println("----Starting Demo Server-----");
//         SpringApplication.run(MainApplication.class, args);
//     }
// }


// Path: web/src/test/java/de/niklaskiefer/bnclWeb/controller/MainControllerTest.java
import de.niklaskiefer.bnclWeb.MainApplication;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

package de.niklaskiefer.bnclWeb.controller;




@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration(classes = MainApplication.class)