在Eclipse控制台中获取无效字符

时间:2019-01-23 11:16:16

标签: java eclipse cucumber

我正在尝试用Java实现黄瓜。但是对于非常基本的打印代码,在eclipse中,控制台会显示一些奇怪的字符,例如[32m。[0m 请参阅屏幕截图:

这是一个Maven项目,添加的依赖项为: 黄瓜java-4.2.2 黄瓜芯4.2.2 黄瓜-html-0.2.7 小黄瓜-5.1.0 黄瓜junit-4.2.2 junit-4.12

这是我的代码:

enter image description here

@Given("^User is on landing page$")
public void user_is_on_landing_page() {
    // Write code here that turns the phrase above into concrete actions
    System.out.println("landing page");

}

@When("^User login to application with username and password$")
public void user_login_to_application_with_username_and_password() {

    // Write code here that turns the phrase above into concrete actions
    System.out.println("entered username & pw");
}

@Then("^Home page is populated$")
public void home_page_is_populated() {

    // Write code here that turns the phrase above into concrete actions
    System.out.println("in home page");
}

@And("^Card infromation is showing$")
public void card_infromation_is_showing() {

    // Write code here that turns the phrase above into concrete actions
    System.out.println("card info");
}

0 个答案:

没有答案