Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/maven/jdi-dark-tests/commons-io…
Browse files Browse the repository at this point in the history
…-commons-io-2.14.0
  • Loading branch information
pnatashap authored Oct 12, 2024
2 parents d5641d6 + e7e1a7c commit 97374e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Created by Roman_Iovlev on 9/25/2016.
*/
@ServiceDomain("https://httpbin.org/")
@ServiceDomain("https://httpbin.org")
public class ServiceExample {
@ContentType(JSON) @GET("/get")
@Header(name = "Name", value = "Roman")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ public void before() {
init(YandexSpeller.class);
}

@Test
@Test(enabled = false)
public void checkTestResponse() {
CheckTextResponse response = YandexSpeller.checkText.callSoap(new CheckTextRequest().withText("soap").withLang("en"));
Assertions.assertThat(response.getSpellResult().getError().size()).isZero();
}

@Test
@Test(enabled = false)
public void checkTestResponseError() {
CheckTextResponse response = YandexSpeller.checkText.callSoap(new CheckTextRequest().withText("кортошка").withLang("ru"));
SpellError spellError = response.getSpellResult().getError().get(0);
Assertions.assertThat(spellError.getWord()).isEqualTo("кортошка");
Assertions.assertThat(spellError.getS()).contains("картошка");
}

@Test
@Test(enabled = false)
public void checkTextsResponse() {
CheckTextsResponse response = YandexSpeller.checkTexts.callSoap(new CheckTextsRequest().withText("soap").withLang("en"));
response.getArrayOfSpellResult().getSpellResult().forEach(e -> Assertions.assertThat(e.getError().size()).isZero());
}

@Test
@Test(enabled = false)
public void checkTextsResponseError() {
CheckTextsResponse response = YandexSpeller.checkTexts
.callSoap(new CheckTextsRequest().withText("saop").withLang("en"));
Expand Down

0 comments on commit 97374e9

Please sign in to comment.