2e8a8a37d5
Instead of calling size() and asserting with isEqualTo(), i.e. assertThat(list.size()).isEqualTo(1); use the hasSize() helper, i.e. assertThat(list).hasSize(1); In tests where the list is expected to be empty, instead of asserting that the size is equal to 0, i.e. assertThat(list.size()).isEqualTo(0); use the isEmpty() helper, i.e. assertThat(list).isEmpty(); Change-Id: Ifa70e3562b15e805c4fcf900c2b493ffc9c75374