GridStepDefs.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:TigerIsland 作者:
@Then("^the new tile is saved at those coordinates$")
public void the_new_tile_is_saved_at_those_coordinates() throws Throwable {
    ArrayList<Tile> placedTiles = gameBoard.getPlacedTiles();
    Tile tile = placedTiles.get(2);
    ArrayList<Coordinate> coords = tile.getCoords();
    if(!(coords.get(0).getX() == 100 && coords.get(0).getY() == 100 && coords.get(1).getX()==101 && coords.get(1).getY()==100
            && coords.get(2).getX()==101 && coords.get(2).getY()== 101)){
        fail("Tile not saved at new coordinates");

    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号