@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); File file = new File(getClass().getResource("/actions/websymbolactions/ClickTestData.json").toURI()); WebSymbolAction obj = mapper.readValue(file, WebSymbolAction.class); assertTrue(obj instanceof ClickAction); ClickAction objAsAction = (ClickAction) obj; assertEquals(node, objAsAction.getNode()); }
public WebElementLocator getNode() { return node; }
ClickAction extends WebSymbolAction { public WebElementLocator getNode() { return node; } }
ClickAction extends WebSymbolAction { public WebElementLocator getNode() { return node; } ClickAction(); }
ClickAction extends WebSymbolAction { public WebElementLocator getNode() { return node; } ClickAction(); @Override ExecuteResult execute(WebSiteConnector connector); WebElementLocator getNode(); boolean isDoubleClick(); void setDoubleClick(boolean doubleClick); void setNode(WebElementLocator node); }
ClickAction extends WebSymbolAction { public WebElementLocator getNode() { return node; } ClickAction(); @Override ExecuteResult execute(WebSiteConnector connector); WebElementLocator getNode(); boolean isDoubleClick(); void setDoubleClick(boolean doubleClick); void setNode(WebElementLocator node);  }