better tests style

This commit is contained in:
2025-07-20 07:47:11 +02:00
parent d694822761
commit 7dd5d65a75
2 changed files with 0 additions and 18 deletions

View File

@@ -73,15 +73,6 @@ class TransitionStateUtilsTest {
assertThat(endStates).isEmpty();
}
@Test
void shouldThrowException_whenNullTransitionsList() {
List<Transition> transitions = null;
assertThatThrownBy(() -> TransitionStateUtils.findStartStates(transitions))
.isInstanceOf(NullPointerException.class);
assertThatThrownBy(() -> TransitionStateUtils.findEndStates(transitions))
.isInstanceOf(NullPointerException.class);
}
@Test
void shouldHandleTransitionsWithQuotedStates() {
List<Transition> transitions = List.of(

View File

@@ -290,13 +290,4 @@ class AstFileFinderTest {
assertThat(result).isTrue();
}
@Test
void shouldReturnFalse_whenAnnotationListContainsNull() {
AstFileFinder finder = new AstFileFinder(CLASS_WITH_ANNOTATION);
List<String> annotationNames = List.of("Service", null, "Component");
boolean result = finder.hasClassWithAnnotation(CLASS_WITH_ANNOTATION, annotationNames);
assertThat(result).isTrue(); // Should still find "Service" annotation
}
}