Skip to content

Commit

Permalink
updated licence format
Browse files Browse the repository at this point in the history
  • Loading branch information
GannaChernyshova committed Dec 29, 2018
1 parent 1c41793 commit 7576891
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
7 changes: 3 additions & 4 deletions src/main/java/ru/alfabank/alfatest/cucumber/api/Pages.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* Copyright 2017 Alfa Laboratory
* <p>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
*
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -15,7 +15,6 @@
*/
package ru.alfabank.alfatest.cucumber.api;

import com.codeborne.selenide.ElementsContainer;
import com.codeborne.selenide.Selenide;
import com.google.common.collect.Maps;
import lombok.SneakyThrows;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package ru.alfabank.tests.core.helpers;

import com.google.common.base.Strings;
Expand Down
20 changes: 10 additions & 10 deletions src/test/java/ru/alfabank/steps/ApiStepsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ public void sendHttpRequestFromFileWithVarsPost() throws java.lang.Exception {
String bodyFileName = "/src/test/resources/bodyWithParams.json";

stubFor(post(urlEqualTo("/post/resource"))
.withRequestBody(WireMock.equalTo(body))
.willReturn(aResponse()
.withStatus(200)
.withHeader("Content-Type", "text/xml")
.withBody("TEST_BODY")));
.withRequestBody(WireMock.equalTo(body))
.willReturn(aResponse()
.withStatus(200)
.withHeader("Content-Type", "text/xml")
.withBody("TEST_BODY")));

List<RequestParam> params = Collections.singletonList(
RequestParam.builder()
.name("body")
.type(RequestParamType.BODY)
.value(bodyFileName)
.build());
RequestParam.builder()
.name("body")
.type(RequestParamType.BODY)
.value(bodyFileName)
.build());
api.sendHttpRequestSaveResponse("POST", "/post/resource", "RESPONSE_POST_BODY", params);
assertThat(akitaScenario.getVar("RESPONSE_POST_BODY"), equalTo("TEST_BODY"));
}
Expand Down

0 comments on commit 7576891

Please sign in to comment.