@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); File file = new File(getClass().getResource("/actions/websymbolactions/ClickLinkTestData.json").toURI()); WebSymbolAction obj = mapper.readValue(file, WebSymbolAction.class); assertTrue(obj instanceof ClickLinkAction); ClickLinkAction objAsAction = (ClickLinkAction) obj; assertEquals("Click Me", objAsAction.getValue()); }
public String getValue() { return value; }
ClickLinkAction extends WebSymbolAction { public String getValue() { return value; } }
ClickLinkAction extends WebSymbolAction { public String getValue() { return value; } ClickLinkAction(); }
ClickLinkAction extends WebSymbolAction { public String getValue() { return value; } ClickLinkAction(); @Override ExecuteResult execute(WebSiteConnector connector); String getValue(); @Transient @JsonIgnore String getValueWithVariableValues(); void setValue(String value); WebElementLocator getNode(); void setNode(WebElementLocator node); }
ClickLinkAction extends WebSymbolAction { public String getValue() { return value; } ClickLinkAction(); @Override ExecuteResult execute(WebSiteConnector connector); String getValue(); @Transient @JsonIgnore String getValueWithVariableValues(); void setValue(String value); WebElementLocator getNode(); void setNode(WebElementLocator node);  }