@@ -0,0 +1,1654 @@
+package de.redsix.pdfcompare;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.CoreMatchers.*;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.File;%0Aimport java.nio.file.Paths;%0A%0Aimport org.junit.Test;%0A%0Apublic class ExclusionsTest %7B%0A%0A    @Test%0A    public void readExclusions() %7B%0A        final Exclusions exclusions = new Exclusions();%0A        exclusions.readExclusions(%22ignore.conf%22);%0A        assertThat(exclusions.forPage(0).contains(300, 400), is(true));%0A        assertThat(exclusions.forPage(0).contains(600, 400), is(false));%0A%0A        assertThat(exclusions.forPage(1).contains(1800, 250), is(true));%0A        assertThat(exclusions.forPage(1).contains(600, 400), is(false));%0A%0A        assertThat(exclusions.forPage(2).contains(600, 400), is(false));%0A    %7D%0A%0A    @Test%0A    public void readFromFile() %7B%0A        final Exclusions exclusions = new Exclusions();%0A        exclusions.readExclusions(new File(%22ignore.conf%22));%0A        assertThat(exclusions.forPage(0).contains(300, 400), is(true));%0A    %7D%0A%0A    @Test%0A    public void readFromPath() %7B%0A        final Exclusions exclusions = new Exclusions();%0A        exclusions.readExclusions(Paths.get(%22ignore.conf%22));%0A        assertThat(exclusions.forPage(0).contains(300, 400), is(true));%0A    %7D%0A%0A    @Test%0A    public void readFromInputStream() %7B%0A        final Exclusions exclusions = new Exclusions();%0A        exclusions.readExclusions(new ByteArrayInputStream(%22exclusions: %5B%7Bx1: 230, y1: 350, x2: 450, y2: 420%7D%5D%22.getBytes()));%0A        assertThat(exclusions.forPage(0).contains(300, 400), is(true));%0A        assertThat(exclusions.forPage(7).contains(300, 400), is(true));%0A    %7D%0A%7D

Add ExclusionsTest