package com.agile.train;

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.web.context.WebApplicationContext;

import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;

@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration("file:src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml")
public class AppTests {
    private MockMvc mockMvc;

    @SuppressWarnings("SpringJavaAutowiringInspection")
    @Autowired
    protected WebApplicationContext wac;

    @Before
    public void setup() {
        this.mockMvc = webAppContextSetup(this.wac).build();
    }

    @Test
    public void simple() throws Exception {
//        mockMvc.perform(post("/"))
//                .andExpect(status().isOk())
//                .andExpect(view().name("index"));
    }
}

@@ -560,20 +560,17 @@
 uilders.
-post
+*
 ;%0Aimport
@@ -1300,18 +1300,16 @@
 ption %7B%0A
-//
         
@@ -1328,19 +1328,18 @@
 orm(
-pos
+ge
 t(%22/%22))%0A
 //  
@@ -1334,18 +1334,16 @@
 t(%22/%22))%0A
-//
         
@@ -1382,10 +1382,8 @@
 ())%0A
-//
     

fix unit test