From f7d3399396696bb851bea411d770441e4da569f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Str=C3=A4hle?= Date: Mon, 2 Dec 2024 23:26:27 +0100 Subject: [PATCH] Cleanup SpecReplicasPathTest --- .../io/fabric8/crdv2/generator/v1/SpecReplicasPathTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crd-generator/api-v2/src/test/java/io/fabric8/crdv2/generator/v1/SpecReplicasPathTest.java b/crd-generator/api-v2/src/test/java/io/fabric8/crdv2/generator/v1/SpecReplicasPathTest.java index 411c97cb341..dcb5806bb52 100644 --- a/crd-generator/api-v2/src/test/java/io/fabric8/crdv2/generator/v1/SpecReplicasPathTest.java +++ b/crd-generator/api-v2/src/test/java/io/fabric8/crdv2/generator/v1/SpecReplicasPathTest.java @@ -29,7 +29,7 @@ class SpecReplicasPathTest { @Test - public void shoudDetectSpecReplicasPath() throws Exception { + void shouldDetectSpecReplicasPath() { JsonSchema resolver = new JsonSchema(ResolvingContext.defaultResolvingContext(false), WebServerWithStatusProperty.class); Optional path = resolver.getSinglePath(SpecReplicas.class); assertTrue(path.isPresent()); @@ -37,7 +37,7 @@ public void shoudDetectSpecReplicasPath() throws Exception { } @Test - public void shoudDetectNestedSpecReplicasPath() throws Exception { + void shouldDetectNestedSpecReplicasPath() { JsonSchema resolver = new JsonSchema(ResolvingContext.defaultResolvingContext(false), WebServerWithSpec.class); Optional path = resolver.getSinglePath(SpecReplicas.class); assertTrue(path.isPresent());