Project: odlparent master
61b469a4c27e60dc144059f282c4c84c8818bf4e
Intro. Google Truth into dependencyManagement
see http://google.github.io/truth/. This seems neater than Hamcrest in
particular for tests on Iterables (Collections). For example, in
Hamcrest:
assertThat(Arrays.asList("foo", "bar"), contains("foo", "baz")); // OK
assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList("foo",
"bar"))); // NOK! :-( because contains only works for vararg not List
whereas with Google Truth:
assertThat(Arrays.asList("foo", "bar")).
containsExactlyElementsIn(Arrays.asList("foo", "baz"));
==> AssertionError: Not true that <[foo, bar]> contains exactly <[foo,
baz]>. It is missing <[baz]> and has unexpected items <[bar]>
also see http://google.github.io/truth/comparison
Change-Id: Iac121b302179e64c8cbd339b6f027582abfdd822
Signed-off-by: Michael Vorburger <vorburger@redhat.com>