marick/Midje

good features https://github.com/joel-costigliola/assertj-core

Closed this issue · 0 comments

http://joel-costigliola.github.io/assertj/index.html

(ym/day-table (str "track-" "some")) => #"track-some_" => (=  size 8) => 4 => 6
// basic assertions
assertThat(frodo.getName()).isEqualTo("Frodo");
assertThat(frodo).isNotEqualTo(sauron);

// chaining string specific assertions
assertThat(frodo.getName()).startsWith("Fro")
                           .endsWith("do")
                           .isEqualToIgnoringCase("frodo");

// collection specific assertions (there are plenty more)
// in the examples below fellowshipOfTheRing is a List<TolkienCharacter>
assertThat(fellowshipOfTheRing).hasSize(9)
                               .contains(frodo, sam)
                               .doesNotContain(sauron);