@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); File file = new File(getClass().getResource("/actions/websymbolactions/CheckNodeTestData.json").toURI()); WebSymbolAction obj = mapper.readValue(file, WebSymbolAction.class); assertTrue(obj instanceof CheckNodeAction); CheckNodeAction objAsAction = (CheckNodeAction) obj; assertEquals("#node", objAsAction.getNode().getSelector()); assertEquals(WebElementLocator.Type.CSS, objAsAction.getNode().getType()); }
public WebElementLocator getNode() { return node; }
CheckNodeAction extends WebSymbolAction { public WebElementLocator getNode() { return node; } }
CheckNodeAction extends WebSymbolAction { public WebElementLocator getNode() { return node; }  }
CheckNodeAction extends WebSymbolAction { public WebElementLocator getNode() { return node; }  @Override ExecuteResult execute(WebSiteConnector connector); WebElementLocator getNode(); void setNode(WebElementLocator node); }
CheckNodeAction extends WebSymbolAction { public WebElementLocator getNode() { return node; }  @Override ExecuteResult execute(WebSiteConnector connector); WebElementLocator getNode(); void setNode(WebElementLocator node);  }