package org.ryu22e.nico2cal.controller; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; import org.junit.Test; import org.slim3.tester.ControllerTestCase; public class IndexControllerTest extends ControllerTestCase { @Test public void run() throws Exception { tester.start("/"); IndexController controller = tester.getController(); assertThat(controller, is(notNullValue())); assertThat(tester.isRedirect(), is(false)); assertThat(tester.response.getStatus(), is(200)); } }