Skip to content
Snippets Groups Projects
Commit e2f55e21 authored by JustAnotherChristoph's avatar JustAnotherChristoph
Browse files

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

parent 037882f4
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 theodolite.execution.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
......@@ -115,6 +116,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