Commit 9430c116 authored by Matthias Betz's avatar Matthias Betz
Browse files

fixed degnerated polygon test

parent 2066345b
Pipeline #4633 passed with stage
in 2 minutes and 16 seconds
......@@ -30,6 +30,7 @@ import org.junit.Test;
import de.hft.stuttgart.citydoctor2.check.CheckError;
import de.hft.stuttgart.citydoctor2.check.Checker;
import de.hft.stuttgart.citydoctor2.check.Requirement;
import de.hft.stuttgart.citydoctor2.check.ValidationConfiguration;
import de.hft.stuttgart.citydoctor2.datastructure.Building;
import de.hft.stuttgart.citydoctor2.datastructure.CityDoctorModel;
......@@ -74,8 +75,8 @@ public class DegeneratedPolygonCheckTest {
ValidationConfiguration valConfig = ValidationConfiguration.loadStandardValidationConfig();
valConfig.setMinVertexDistanceInGlobalParameters(0.004);
Map<String, String> parameters = new HashMap<>();
parameters.put("degeneratedPolygonTolerance", "0.004");
valConfig.getRequirements().get(RequirementId.R_GE_P_NON_PLANAR.toString()).getParameters().putAll(parameters);
parameters.put(Requirement.DEGENERATED_RING_TOLERANCE, "0.004");
valConfig.getRequirements().get(RequirementId.R_GE_R_SELF_INTERSECTION.toString()).getParameters().putAll(parameters);
Checker c = new Checker(valConfig, model);
c.runChecks();
......
Supports Markdown
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