Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty()
Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\) Replace with : assertThat($1).isEmpty() Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\) Replace with : assertThat($1).isNotEmpty() Closes gh-31758
This commit is contained in:
committed by
Brian Clozel
parent
7b16ef90f1
commit
afcd03bddc
@@ -49,7 +49,7 @@ class MockMultipartHttpServletRequestTests {
|
||||
assertThat(request.getFileNames().hasNext()).isFalse();
|
||||
assertThat(request.getFile("file1")).isNull();
|
||||
assertThat(request.getFile("file2")).isNull();
|
||||
assertThat(request.getFileMap().isEmpty()).isTrue();
|
||||
assertThat(request.getFileMap()).isEmpty();
|
||||
|
||||
request.addFile(new MockMultipartFile("file1", "myContent1".getBytes()));
|
||||
request.addFile(new MockMultipartFile("file2", "myOrigFilename", TEXT_PLAIN_VALUE, "myContent2".getBytes()));
|
||||
|
||||
Reference in New Issue
Block a user