Skip to content

Instantly share code, notes, and snippets.

@keesun
Created April 16, 2012 09:15
Show Gist options
  • Save keesun/2397213 to your computer and use it in GitHub Desktop.
Save keesun/2397213 to your computer and use it in GitHub Desktop.
Test for web configuration using @configuration
package cantabille.config;
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.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
/**
* @author Keesun Baik
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = WebConfig.class)
public class WebConfigTest {
@Autowired RequestMappingHandlerMapping rmhm;
@Test
public void di(){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment