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
3da98b3e
Commit
3da98b3e
authored
Nov 07, 2025
by
Luna Riegel
Browse files
Test: Adjust testcase to reflect current Implementation
parent
0a833640
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/test/java/de/hft/stuttgart/citydoctor2/database/DataBaseHandlerTest.java
View file @
3da98b3e
...
@@ -44,12 +44,6 @@ public class DataBaseHandlerTest {
...
@@ -44,12 +44,6 @@ public class DataBaseHandlerTest {
}
}
}
}
@Test
public
void
testSetup
()
throws
SQLException
{
try
(
Connection
con
=
H2GISDBFactory
.
openSpatialDataBase
(
"cd_db"
))
{
assertNotNull
(
con
);
}
}
@Test
@Test
public
void
testGetAllFeatures
()
{
public
void
testGetAllFeatures
()
{
...
@@ -235,8 +229,6 @@ public class DataBaseHandlerTest {
...
@@ -235,8 +229,6 @@ public class DataBaseHandlerTest {
@Test
@Test
public
void
testMarshallingRoundTripSimpleSolid
()
throws
InvalidGmlFileException
,
CityGmlParseException
{
public
void
testMarshallingRoundTripSimpleSolid
()
throws
InvalidGmlFileException
,
CityGmlParseException
{
try
(
Connection
con
=
H2GISDBFactory
.
openSpatialDataBase
(
"cd_db"
))
{
assertNotNull
(
con
);
ParserConfiguration
config
=
new
ParserConfiguration
(
8
,
false
);
ParserConfiguration
config
=
new
ParserConfiguration
(
8
,
false
);
CityDoctorModel
model
=
CityGmlParser
.
parseCityGmlFile
(
"src/test/resources/SimpleSolid_SrefBS.gml"
,
config
);
CityDoctorModel
model
=
CityGmlParser
.
parseCityGmlFile
(
"src/test/resources/SimpleSolid_SrefBS.gml"
,
config
);
...
@@ -251,16 +243,11 @@ public class DataBaseHandlerTest {
...
@@ -251,16 +243,11 @@ public class DataBaseHandlerTest {
assertCityObjectEquality
(
b
,
b2
);
assertCityObjectEquality
(
b
,
b2
);
}
catch
(
SQLException
e
)
{
throw
new
RuntimeException
(
e
);
}
}
}
@Test
@Test
public
void
testMarshallingRoundTripFzk
()
throws
InvalidGmlFileException
,
CityGmlParseException
{
public
void
testMarshallingRoundTripFzk
()
throws
InvalidGmlFileException
,
CityGmlParseException
{
try
(
Connection
con
=
H2GISDBFactory
.
openSpatialDataBase
(
"cd_db"
))
{
assertNotNull
(
con
);
ParserConfiguration
config
=
new
ParserConfiguration
(
8
,
false
);
ParserConfiguration
config
=
new
ParserConfiguration
(
8
,
false
);
CityDoctorModel
model
=
CityGmlParser
.
parseCityGmlFile
(
"src/test/resources/FZK_haus.gml"
,
config
);
CityDoctorModel
model
=
CityGmlParser
.
parseCityGmlFile
(
"src/test/resources/FZK_haus.gml"
,
config
);
...
@@ -276,9 +263,6 @@ public class DataBaseHandlerTest {
...
@@ -276,9 +263,6 @@ public class DataBaseHandlerTest {
assertCityObjectEquality
(
b
,
b2
);
assertCityObjectEquality
(
b
,
b2
);
}
catch
(
SQLException
e
)
{
throw
new
RuntimeException
(
e
);
}
}
}
}
}
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