Skip to content

Commit 68c53c9

Browse files
Copilotnixel2007
andcommitted
Address review feedback: remove trailing whitespace and use assertThatCode pattern
Co-authored-by: nixel2007 <[email protected]>
1 parent 2fe2649 commit 68c53c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/DeletingCollectionItemDiagnosticTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.util.List;
2929

3030
import static com.github._1c_syntax.bsl.languageserver.util.Assertions.assertThat;
31+
import static org.assertj.core.api.Assertions.assertThatCode;
3132

3233

3334
class DeletingCollectionItemDiagnosticTest extends AbstractDiagnosticTest<DeletingCollectionItemDiagnostic> {
@@ -56,15 +57,14 @@ void testIncompleteForEachStatement() {
5657
// Test that incomplete forEach statement doesn't cause NullPointerException
5758
String module = """
5859
Процедура Тест()
59-
Для Каждого\s
60+
Для Каждого
6061
КонецПроцедуры
6162
""";
6263

6364
var documentContext = TestUtils.getDocumentContext(module);
64-
var diagnostics = getDiagnostics(documentContext);
6565

66-
// Should not throw NullPointerException and should have no diagnostics
67-
assertThat(diagnostics).hasSize(0);
66+
assertThatCode(() -> getDiagnostics(documentContext))
67+
.doesNotThrowAnyException();
6868
}
6969

7070
}

0 commit comments

Comments
 (0)