Skip to content

Commit

Permalink
fix: Fix code smells
Browse files Browse the repository at this point in the history
Signed-off-by: Kristiyan Selveliev <[email protected]>
  • Loading branch information
kselveliev committed Nov 15, 2024
1 parent 62d40fa commit 7feac7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void testEmptyRegistrations() {
void testRegister() {
Service service = new FileServiceImpl();
servicesRegistry.register(service);
assertThat(servicesRegistry.registrations().size()).isEqualTo(1);
assertThat(servicesRegistry.registrations()).hasSize(1);
}

@Test
Expand All @@ -62,6 +62,6 @@ void testSubRegistry() {
servicesRegistry.register(service2);
ServicesRegistryImpl subRegistry = (ServicesRegistryImpl)
servicesRegistry.subRegistryFor(service.getServiceName(), service2.getServiceName());
assertThat(subRegistry.registrations().size()).isEqualTo(2);
assertThat(subRegistry.registrations()).hasSize(2);
}
}

0 comments on commit 7feac7d

Please sign in to comment.