Skip to content

Commit 1f710ca

Browse files
committed
tests for not overlapping with tolerance
1 parent 80b2e28 commit 1f710ca

File tree

4 files changed

+135
-71
lines changed

4 files changed

+135
-71
lines changed

src/main/java/util/validator/ResponsiveUIValidator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ protected ResponsiveUIValidator(net.itarray.automotion.validation.ResponsiveUIVa
3232
responsiveUIValidator.dontDrawMap();
3333
}
3434

35+
public ResponsiveUIValidator withTolerance(int tolerance) {
36+
responsiveUIValidator.withTolerance(tolerance);
37+
return this;
38+
}
39+
3540
public boolean isWithReport() {
3641
return responsiveUIValidator.isWithReport();
3742
}

src/test/java/rectangles/IntersectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void shouldNotOverlap() {
5959

6060
@Test
6161
public void areNotOverlapped() {
62-
assertThat(areNotOverlappedWithEachOther(Arrays.asList(root, other)))
62+
assertThat(doNotOverlap(Arrays.asList(root, other)))
6363
.withFailMessage(failMessage(intersectionExpectation()))
6464
.isEqualTo(!intersects);
6565
}

0 commit comments

Comments
 (0)