public static String[] addGateway(WebTester tester, String name) { String[] row = new String[] {name + "Name", name + "Address", name + "Description"}; if (null != name) { tester.setFormElement("gatewayName", row[0]); tester.setFormElement("gatewayAddress", row[1]); tester.setFormElement("gatewayDescription", row[2]); } tester.clickButton("gateway:save"); return row;
private void addGateway(String name) { addGateway(getTester(), name);
    public static String[] addGateway(WebTester tester, String name) {        String[] row = new String[] {name + "Name", name + "Address", name + "Description"};        if (null != name) {            tester.setFormElement("gatewayName", row[0]);            tester.setFormElement("gatewayAddress", row[1]);            tester.setFormElement("gatewayDescription", row[2]);        }        tester.clickButton("gateway:save");        return row;    }