Skip to content

Instantly share code, notes, and snippets.

male(george).
male(john).
male(robert).
female(barbara).
female(christine).
female(yolanda).
person(X) :- male(X).
person(X) :- female(X).
@almondtools
almondtools / AssertJCollectionExample.java
Created June 5, 2018 07:00
Proposal how to enhance assertj collection matching
package test;
import static java.util.Objects.isNull;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.containsInAnyOrder;
import java.util.ArrayList;
import java.util.List;
import org.assertj.core.api.HamcrestCondition;