Skip to content
Snippets Groups Projects
Commit 33ea49a7 authored by JustAnotherChristoph's avatar JustAnotherChristoph Committed by Christopher Konkel
Browse files

suppressed unchecked cast warning. Warning only occured in one specific test case

parent 0c8345db
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !276. Comments created here will be created in the context of that merge request.
......@@ -2,6 +2,7 @@ package rocks.theodolite.kubernetes.operator
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import groovy.transform.SourceURI
import io.fabric8.kubernetes.client.CustomResourceList
import io.fabric8.kubernetes.client.server.mock.KubernetesServer
import io.quarkus.test.junit.QuarkusTest
......@@ -113,6 +114,7 @@ class ControllerTest {
.getDeclaredMethod("getBenchmarks")
method.isAccessible = true
@Suppress("UNCHECKED_CAST")
val result = method.invoke(controller) as List<BenchmarkCRD>
assertEquals(2, result.size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment