gerrit/gerrit-acceptance-tests
David Pursehouse 2e8a8a37d5 Fix assertions on iterable size in tests
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
2018-03-18 14:44:41 +09:00
..