Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #42 from sbtqa/fix-class-cast
Browse files Browse the repository at this point in the history
fix hashmap to string class cast exception
  • Loading branch information
kosteman authored Jul 24, 2018
2 parents 538c4f1 + eacb4bb commit 70e2a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private Bullet fire(String mthd, String url, Map<String, String> headers, Object
}

//add body
if (null != body && !"".equals(body)) {
if (null != body && !"".equals(body) && body instanceof String) {
try (OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream(), encoding)) {
out.write((String) body);
}
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/ru/sbtqa/tag/apifactory/CucumberTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
@CucumberOptions(
glue = {"ru.sbtqa.tag.stepdefs.en", "ru.sbtqa.tag.apifactory.stepdefs"},
features = {"src/test/resources/features"},
tags = "~@disabled"
plugin = {"pretty"},
tags = "not @disabled"

)
public class CucumberTest {
Expand Down

0 comments on commit 70e2a5e

Please sign in to comment.