{"id":267281,"date":"2015-11-02T12:24:03","date_gmt":"2015-11-02T09:24:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267281"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267281","title":{"rendered":"\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c AssertJ"},"content":{"rendered":"<p>       \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u043c\u043e\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c maven \u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/>   2.1. \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u043e\u0441\u044c WSDL \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435<br \/>   2.2. \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u0434 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 WSDL \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f<br \/>   2.3. \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u0434 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0445, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435<br \/>  3. \u041f\u0438\u0448\u0435\u043c \u0442\u0435\u0441\u0442\u044b.<br \/>  4. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 jenkins, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u0430\u043c\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: Java, maven, AssertJ, TestNG.<\/p>\n<p>  AssertJ \u2014 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0443\u043c\u0435\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0441\u0435\u0440\u0442\u044b \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0442\u0430\u043a:<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"java\">\/\/\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 CheckTextRequest r = new CheckTextRequest(); r.setText(&quot;\u0424\u0440\u0430\u0437\u0430 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u0432 \u0441\u043b\u043e\u0432\u0435 \u0411\u0420\u041e\u0428\u0423\u0420\u0410&quot;); CheckTextResponse resp = port.checkText(r); SpellError sError = resp.getSpellResult().getError().get(0);  \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0442\u0432\u0435\u0442 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0430\u0441\u0435\u0440\u0442\u043e\u0432 soft.assertThat(sError )       .as(&quot;\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 SpellError&quot;)         .hasCode(1)         .hasCol(24)          .hasLen(7)         .hasPos(24)         .hasRow(0)         .hasWord(&quot;\u0411\u0420\u041e\u0428\u0423\u0420\u0410555&quot;)         .hasOnlyS(&quot;\u0411\u0420\u041e\u0428\u042e\u0420\u0410 \u043e\u0448\u0438\u0431\u043a\u0430&quot;); <\/code><\/pre>\n<p>  \u0418, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code class=\"dos\">The following assertion failed: 1) [\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 SpellError]  Expecting word of:   &lt;net.yandex.speller.services.spellservice.SpellError@61ca2dfa&gt; to be:   &lt;\u0411\u0420\u041e\u0428\u0423\u0420\u0410555&gt; but was:   &lt;\u0411\u0420\u041e\u0428\u0423\u0420\u0410&gt; \tat org.assertj.SoftAssertions.assertAll(SoftAssertions.java:32) \tat ru.x_noname.test.SOAPTest$Listener.afterInvocation(SOAPTest.java:69) \t... <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u2014 <a href=\"https:\/\/tech.yandex.ru\/speller\/doc\/dg\/concepts\/api-overview-docpage\/\">tech.yandex.ru\/speller\/doc\/dg\/concepts\/api-overview-docpage<\/a><\/p>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:<\/p>\n<p>  1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 maven \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"dos\">mvn archetype:generate -DgroupId=ru.x_noname.test -DartifactId=SOAPTester  -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false <\/code><\/pre>\n<p>  2. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c pom.xml. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u044b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;plugin&gt;     &lt;artifactId&gt;maven-clean-plugin&lt;\/artifactId&gt;     &lt;version&gt;3.0.0&lt;\/version&gt;     &lt;configuration&gt;         &lt;filesets&gt;             &lt;fileset&gt;                 &lt;directory&gt;${project.basedir}\/src\/generated&lt;\/directory&gt;                 &lt;followSymlinks&gt;false&lt;\/followSymlinks&gt;             &lt;\/fileset&gt;         &lt;\/filesets&gt;     &lt;\/configuration&gt; &lt;\/plugin&gt;     <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 WDSL \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;plugin&gt;       &lt;groupId&gt;com.googlecode.maven-download-plugin&lt;\/groupId&gt;       &lt;artifactId&gt;maven-download-plugin&lt;\/artifactId&gt;       &lt;version&gt;1.1.0&lt;\/version&gt;       &lt;executions&gt;           &lt;execution&gt;               &lt;id&gt;Download Mayak&lt;\/id&gt;               &lt;goals&gt;                   &lt;goal&gt;wget&lt;\/goal&gt;               &lt;\/goals&gt;               &lt;phase&gt;validate&lt;\/phase&gt;               &lt;configuration&gt;                  &lt;url&gt;http:\/\/speller.yandex.net\/services\/spellservice?WSDL&lt;\/url&gt;                   &lt;outputDirectory&gt;${project.build.directory}\/resources\/wsdl&lt;\/outputDirectory&gt;                   &lt;outputFileName&gt;spellservice.xml&lt;\/outputFileName&gt;                 &lt;skipCache&gt;true&lt;\/skipCache&gt;               &lt;\/configuration&gt;           &lt;\/execution&gt;       &lt;\/executions&gt;   &lt;\/plugin&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e WDSL \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;plugin&gt;     &lt;groupId&gt;org.apache.cxf&lt;\/groupId&gt;     &lt;artifactId&gt;cxf-codegen-plugin&lt;\/artifactId&gt;     &lt;version&gt;3.1.3&lt;\/version&gt;     &lt;executions&gt;         &lt;execution&gt;             &lt;id&gt;generate-sources&lt;\/id&gt;             &lt;phase&gt;generate-sources&lt;\/phase&gt;             &lt;configuration&gt;                 &lt;sourceRoot&gt;${project.basedir}\/src\/generated&lt;\/sourceRoot&gt;                 &lt;wsdlOptions&gt;                     &lt;wsdlOption&gt;                         &lt;wsdl&gt;${project.build.directory}\/resources\/wsdl\/spellservice.xml&lt;\/wsdl&gt;                         &lt;extraargs&gt;                             &lt;extraarg&gt;-client&lt;\/extraarg&gt;                         &lt;\/extraargs&gt;                     &lt;\/wsdlOption&gt;                 &lt;\/wsdlOptions&gt;             &lt;\/configuration&gt;             &lt;goals&gt;                 &lt;goal&gt;wsdl2java&lt;\/goal&gt;             &lt;\/goals&gt;         &lt;\/execution&gt;     &lt;\/executions&gt; &lt;\/plugin&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438\u0437 WDSL<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;plugin&gt;     &lt;groupId&gt;org.assertj&lt;\/groupId&gt;     &lt;artifactId&gt;assertj-assertions-generator-maven-plugin&lt;\/artifactId&gt;     &lt;version&gt;2.0.0&lt;\/version&gt;     &lt;executions&gt;         &lt;execution&gt;             &lt;goals&gt;                 &lt;goal&gt;generate-assertions&lt;\/goal&gt;             &lt;\/goals&gt;         &lt;\/execution&gt;     &lt;\/executions&gt;     &lt;configuration&gt;         &lt;classes&gt;             &lt;param&gt;net.yandex.speller.services.spellservice.SpellResult&lt;\/param&gt;             &lt;param&gt;net.yandex.speller.services.spellservice.SpellError&lt;\/param&gt;         &lt;\/classes&gt;         &lt;hierarchical&gt;true&lt;\/hierarchical&gt;         &lt;entryPointClassPackage&gt;org.assertj&lt;\/entryPointClassPackage&gt;         &lt;targetDir&gt;${project.basedir}\/src\/generated&lt;\/targetDir&gt;         &lt;generateSoftAssertions&gt;true&lt;\/generateSoftAssertions&gt;         &lt;!-- \u0415\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0432 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0430\u0430\u0441\u0435\u0440\u0442\u0430\u0445 \u0432\u0430\u043c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442. \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b                             &lt;templates&gt;             &lt;templatesDirectory&gt;src\/main\/resources\/templates\/&lt;\/templatesDirectory&gt;             &lt;softEntryPointAssertionClass&gt;class.txt&lt;\/softEntryPointAssertionClass&gt;             &lt;softEntryPointAssertionMethod&gt;method.txt&lt;\/softEntryPointAssertionMethod&gt;             &lt;objectAssertion&gt;object.txt&lt;\/objectAssertion&gt;             &lt;wholeNumberAssertion&gt;primirives.txt&lt;\/wholeNumberAssertion&gt;             &lt;wholeNumberWrapperAssertion&gt;wrappers.txt&lt;\/wholeNumberWrapperAssertion&gt;         &lt;\/templates&gt;                             --&gt;     &lt;\/configuration&gt; &lt;\/plugin&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u0430\u0436\u043d\u043e \u0435\u0449\u0435 \u0442\u043e, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0430\u0441\u0435\u0440\u0442\u043e\u0432.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043b\u0430\u0433\u0438\u043d \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre> &lt;plugin&gt;     &lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt;     &lt;artifactId&gt;build-helper-maven-plugin&lt;\/artifactId&gt;     &lt;version&gt;1.9.1&lt;\/version&gt;     &lt;executions&gt;         &lt;execution&gt;             &lt;id&gt;add-source&lt;\/id&gt;             &lt;phase&gt;generate-sources&lt;\/phase&gt;             &lt;goals&gt;                 &lt;goal&gt;add-source&lt;\/goal&gt;             &lt;\/goals&gt;             &lt;configuration&gt;                 &lt;sources&gt;                     &lt;source&gt;${project.basedir}\/src\/generated&lt;\/source&gt;                 &lt;\/sources&gt;             &lt;\/configuration&gt;         &lt;\/execution&gt;     &lt;\/executions&gt; &lt;\/plugin&gt; <\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;!-- \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 --&gt;         &lt;dependencies&gt;             &lt;dependency&gt;                 &lt;groupId&gt;org.testng&lt;\/groupId&gt;                 &lt;artifactId&gt;testng&lt;\/artifactId&gt;                 &lt;version&gt;6.9.8&lt;\/version&gt;                 &lt;scope&gt;test&lt;\/scope&gt;                 &lt;exclusions&gt;                     &lt;exclusion&gt;                         &lt;groupId&gt;junit&lt;\/groupId&gt;                         &lt;artifactId&gt;junit&lt;\/artifactId&gt;                     &lt;\/exclusion&gt;                 &lt;\/exclusions&gt;             &lt;\/dependency&gt;             &lt;dependency&gt;                 &lt;groupId&gt;org.assertj&lt;\/groupId&gt;                 &lt;artifactId&gt;assertj-core&lt;\/artifactId&gt;                 &lt;version&gt;3.2.0&lt;\/version&gt;             &lt;\/dependency&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>   3. \u041a\u043e\u0434 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:   <\/p>\n<pre><code class=\"java\">@Test(description = &quot;\u041f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u0442\u0435\u0441\u0442&quot;)            public void t1_positive() throws Exception {                CheckTextRequest r = new CheckTextRequest();                r.setText(&quot;\u0424\u0440\u0430\u0437\u0430 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a&quot;);                CheckTextResponse resp = port.checkText(r);                SpellResult res = resp.getSpellResult();                soft.assertThat(res).as(&quot;\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 SpellResult&quot;).hasNoError();            }                    @Test(description = &quot;\u041d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0442\u0435\u0441\u0442&quot;)            public void t2_negative() throws Exception {                CheckTextRequest r = new CheckTextRequest();                r.setText(&quot;\u0424\u0440\u0430\u0437\u0430 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u0432 \u0441\u043b\u043e\u0432\u0435 \u0411\u0420\u041e\u0428\u0423\u0420\u0410&quot;);                CheckTextResponse resp = port.checkText(r);                SpellResult res = resp.getSpellResult(); \t\t\t   SpellError sError = res.getError().get(0);                soft.assertThat(sError).as(&quot;\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 SpellError&quot;)                        .hasCode(1)                        .hasCol(24)                         .hasLen(7)                        .hasPos(24)                        .hasRow(0)                        .hasWord(&quot;\u0411\u0420\u041e\u0428\u0423\u0420\u0410&quot;)                        .hasOnlyS(&quot;\u0411\u0420\u041e\u0428\u042e\u0420\u0410&quot;);                       \/\/\u043c\u0435\u0442\u043e\u0434\u044b has... - \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AssertJ            } <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>mvn test<\/i><\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p>  AssertJ \u2014 <a href=\"http:\/\/joel-costigliola.github.io\/assertj\/\">http:\/\/joel-costigliola.github.io\/assertj\/<\/a><br \/>  \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 <a href=\"https:\/\/github.com\/X-NoNAME\/SOAPTester\">SOAPTester<\/a>       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/269961\/\"> http:\/\/habrahabr.ru\/post\/269961\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u043c\u043e\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c maven \u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/>   2.1. \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u043e\u0441\u044c WSDL \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435<br \/>   2.2. \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u0434 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 WSDL \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f<br \/>   2.3. \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u0434 \u0430\u0441\u0441\u0435\u0440\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0445, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435<br \/>  3. \u041f\u0438\u0448\u0435\u043c \u0442\u0435\u0441\u0442\u044b.<br \/>  4. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 jenkins, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u0430\u043c\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: Java, maven, AssertJ, TestNG.<\/p>\n<p>  AssertJ \u2014 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0443\u043c\u0435\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0441\u0435\u0440\u0442\u044b \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0442\u0430\u043a:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-267281","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267281"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267281\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}