@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); String path = "/actions/restsymbolactions/CheckAttributeExistsTestData.json"; File file = new File(getClass().getResource(path).toURI()); RESTSymbolAction obj = mapper.readValue(file, RESTSymbolAction.class); assertTrue(obj instanceof CheckAttributeExistsAction); CheckAttributeExistsAction objAsAction = (CheckAttributeExistsAction) obj; assertEquals("object.attribute", objAsAction.getAttribute()); }
public String getAttribute() { return attribute; }
CheckAttributeExistsAction extends RESTSymbolAction { public String getAttribute() { return attribute; } }
CheckAttributeExistsAction extends RESTSymbolAction { public String getAttribute() { return attribute; }  }
CheckAttributeExistsAction extends RESTSymbolAction { public String getAttribute() { return attribute; }  @Override ExecuteResult execute(WebServiceConnector target); String getAttribute(); @Transient @JsonIgnore String getAttributeWithVariableValues(); void setAttribute(String attribute); }
CheckAttributeExistsAction extends RESTSymbolAction { public String getAttribute() { return attribute; }  @Override ExecuteResult execute(WebServiceConnector target); String getAttribute(); @Transient @JsonIgnore String getAttributeWithVariableValues(); void setAttribute(String attribute);  }