Commit 2811989e authored by Matthias Betz's avatar Matthias Betz
Browse files

Merge branch '44-rename-error-classes-to-better-represent-the-error-codes' into 'master'

Resolve "Rename error classes to better represent the error codes"

Closes #44

See merge request betzms/citydoctor2!2
parents a10cd195 a707fb93
Pipeline #1257 passed with stage
in 1 minute and 50 seconds
......@@ -29,7 +29,7 @@ import org.junit.Test;
import de.hft.stuttgart.citydoctor2.check.CheckResult;
import de.hft.stuttgart.citydoctor2.check.ResultStatus;
import de.hft.stuttgart.citydoctor2.check.error.EdgeIntersectionError;
import de.hft.stuttgart.citydoctor2.check.error.RingEdgeIntersectionError;
import de.hft.stuttgart.citydoctor2.datastructure.ConcretePolygon;
import de.hft.stuttgart.citydoctor2.datastructure.Geometry;
import de.hft.stuttgart.citydoctor2.datastructure.GeometryType;
......@@ -78,8 +78,8 @@ public class RingSelfIntCheckTest {
check.check(lr);
CheckResult cr = lr.getCheckResult(check);
assertSame(ResultStatus.ERROR, cr.getResultStatus());
assertTrue(cr.getError() instanceof EdgeIntersectionError);
EdgeIntersectionError err = (EdgeIntersectionError) cr.getError();
assertTrue(cr.getError() instanceof RingEdgeIntersectionError);
RingEdgeIntersectionError err = (RingEdgeIntersectionError) cr.getError();
assertNotNull(err.getIntersection());
assertEquals(5d, err.getIntersection().getX(), 0.00001);
assertEquals(5d, err.getIntersection().getY(), 0.00001);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment