Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
182cf793
Commit
182cf793
authored
Dec 18, 2025
by
Luna Riegel
Browse files
Test: Fix test failure due to missing file
parent
2e14765f
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorHealer/src/test/java/de/hft/stuttgart/citydoctor2/healing/HealSolidNotClosedErrorTest.java
View file @
182cf793
...
...
@@ -4,7 +4,9 @@ import static org.junit.Assert.assertEquals;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
java.io.File
;
import
java.io.IOException
;
import
java.nio.file.Path
;
import
de.hft.stuttgart.citydoctor2.connect.edge.CppTest
;
import
org.citygml4j.xml.writer.CityGMLWriteException
;
...
...
@@ -439,20 +441,18 @@ public class HealSolidNotClosedErrorTest {
*/
@Test
public
void
testMissingPolygon2
()
throws
CityGmlParseException
,
IOException
,
InvalidGmlFileException
{
String
path
=
"src/test/resources/SimpleSolid_SrefBS-GE-gml-SO-0002-T0002.gml"
;
//bei diesem Modell stürzt die VM ab
//
String path = "src/test/resources/SimpleSolid_SrefBS-GE-gml-SO-0002-T0002.gml"; //bei diesem Modell stürzt die VM ab
// String path = "src/test/resources/SimpleSolid_SrefBS-GE-gml-SO-0002-T0001.gml"; //hier nur Fehlermeldung
String
path
=
"src/test/resources/SimpleSolid_SrefBS-GE-gml-LR-0004-T0005.gml"
;
// String path = "src/test/resources/SimpleSolid_SrefBS.gml";
ValidationConfiguration
config
=
ValidationConfiguration
.
loadStandardValidationConfig
();
CityDoctorModel
model
=
TestUtil
.
loadCityModel
(
path
,
config
);
Checker
c
=
new
Checker
(
config
,
model
);
c
.
runChecks
();
Geometry
geom
=
model
.
getBuildings
().
toList
().
get
(
0
).
getGeometries
().
get
(
0
);
geom
.
updateVertices
();
for
(
Vertex
v
:
geom
.
getVertices
())
{
v
.
setX
(
v
.
getX
()
-
10
);
v
.
setY
(
v
.
getY
()
-
10
);
}
Assert
.
assertTrue
(
geom
.
containsError
(
CheckId
.
C_GE_S_NOT_CLOSED
));
Healer
healer
=
new
Healer
(
c
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment