Skip to content

Commit c82f929

Browse files
committed
fix tests
1 parent 1a732b8 commit c82f929

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/github/_1c_syntax/bsl/languageserver/context/symbol/description/MethodDescriptionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void testMethod12() {
142142
assertThat(type.description()).isEmpty();
143143
assertThat(type.fields()).isEmpty();
144144
assertThat(type).isInstanceOf(HyperlinkTypeDescription.class);
145-
assertThat(((HyperlinkTypeDescription) type).hyperlink()).isEqualTo(Hyperlink.create("ОбщийМодуль.Метод()"));
145+
assertThat(((HyperlinkTypeDescription) type).hyperlink().link()).isEqualTo("ОбщийМодуль.Метод");
146146
}
147147

148148
@Test
@@ -161,7 +161,7 @@ void testMethod11() {
161161
assertThat(param.name()).isEqualTo("ОбщийМодуль.Метод");
162162
assertThat(param.types()).hasSize(1);
163163
assertThat(param.isHyperlink()).isTrue();
164-
assertThat(param.link()).isEqualTo(Hyperlink.create("ОбщийМодуль.Метод()"));
164+
assertThat(param.link().link()).isEqualTo("ОбщийМодуль.Метод");
165165
}
166166

167167
@Test
@@ -175,7 +175,7 @@ void testMethod10() {
175175
assertThat(method.getCallOptions()).isEmpty();
176176
assertThat(method.getParameters()).isEmpty();
177177
assertThat(method.getReturnedValue()).isEmpty();
178-
assertThat(method.getLinks()).contains(Hyperlink.create("ОбщийМодуль.Метод()"));
178+
assertThat(method.getLinks().stream().map(link -> link.link())).contains("ОбщийМодуль.Метод");
179179
}
180180

181181
@Test

0 commit comments

Comments
 (0)