Fix incomplete calls to assertThat

This commit is contained in:
Andy Wilkinson
2018-02-08 11:05:58 +00:00
parent c1d7d5ec2a
commit 70c613819d
3 changed files with 11 additions and 12 deletions

View File

@@ -32,7 +32,6 @@ import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.mockito.BDDMockito.given;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
@@ -103,7 +102,7 @@ public class UserVehicleControllerTests {
@Test(expected = NoSuchBeanDefinitionException.class)
public void welcomeCommandLineRunnerShouldBeAvailable() {
// Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available.
assertThat(this.applicationContext.getBean(WelcomeCommandLineRunner.class));
this.applicationContext.getBean(WelcomeCommandLineRunner.class);
}
}