Add assertions to help debug Windows CI issues

pull/2783/head
Phillip Webb 10 years ago
parent 718a090b32
commit 5635211801

@ -84,6 +84,8 @@ public class SpringBootMockServletContextTests implements ServletContextAware {
URL resource = context.getResource("/"); URL resource = context.getResource("/");
assertThat(resource, not(nullValue())); assertThat(resource, not(nullValue()));
File file = new File(resource.getPath()); File file = new File(resource.getPath());
assertThat("File " + file + " exists", file.exists(), equalTo(true));
assertThat("File " + file + " is directory", file.isDirectory(), equalTo(true));
String[] contents = file.list(new FilenameFilter() { String[] contents = file.list(new FilenameFilter() {
@Override @Override
public boolean accept(File dir, String name) { public boolean accept(File dir, String name) {

Loading…
Cancel
Save