Skip to content

Commit

Permalink
Cleanup SpecReplicasPathTest
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo42 committed Dec 2, 2024
1 parent c5460c7 commit f7d3399
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
class SpecReplicasPathTest {

@Test
public void shoudDetectSpecReplicasPath() throws Exception {
void shouldDetectSpecReplicasPath() {
JsonSchema resolver = new JsonSchema(ResolvingContext.defaultResolvingContext(false), WebServerWithStatusProperty.class);
Optional<String> path = resolver.getSinglePath(SpecReplicas.class);
assertTrue(path.isPresent());
assertEquals(".replicas", path.get());
}

@Test
public void shoudDetectNestedSpecReplicasPath() throws Exception {
void shouldDetectNestedSpecReplicasPath() {
JsonSchema resolver = new JsonSchema(ResolvingContext.defaultResolvingContext(false), WebServerWithSpec.class);
Optional<String> path = resolver.getSinglePath(SpecReplicas.class);
assertTrue(path.isPresent());
Expand Down

0 comments on commit f7d3399

Please sign in to comment.