Use hasSize() assertion in favor of length checks
See gh-17874
This commit is contained in:
committed by
Stephane Nicoll
parent
04b63cda8f
commit
d4affd7f85
@@ -296,7 +296,7 @@ class RepackagerTests {
|
||||
assertThat(entry.getTime()).isEqualTo(JAN_1_1985);
|
||||
entry = getEntry(file, "BOOT-INF/lib/" + libJarFileToUnpack.getName());
|
||||
assertThat(entry.getComment()).startsWith("UNPACK:");
|
||||
assertThat(entry.getComment().length()).isEqualTo(47);
|
||||
assertThat(entry.getComment()).hasSize(47);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user