Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma committed Oct 19, 2023
1 parent ab0d9cf commit e24105c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TileServicesTests {
fun checkTileServicesImplementCorrectId() {
GlobalScope.launch(Dispatchers.Main) {
for (tileService in tileServices) {
val id = (tileService.newInstance() as AbstractTileService).ID
val id = (tileService.getDeclaredConstructor().newInstance() as AbstractTileService).ID
Assert.assertEquals(
"Name of the tile service doesn't match its id",
id,
Expand All @@ -75,7 +75,7 @@ class TileServicesTests {
fun checkClassName() {
GlobalScope.launch(Dispatchers.Main) {
for (tileService in tileServices) {
val id = (tileService.newInstance() as AbstractTileService).ID
val id = (tileService.getDeclaredConstructor().newInstance() as AbstractTileService).ID
Assert.assertEquals(
AbstractTileService.getClassNameForId(id),
tileService.canonicalName
Expand Down

0 comments on commit e24105c

Please sign in to comment.