better tests style
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user