@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); File file = new File(getClass().getResource("/actions/WaitTestData.json").toURI()); SymbolAction obj = mapper.readValue(file, SymbolAction.class); assertTrue(obj instanceof SymbolAction); WaitAction objAsAction = (WaitAction) obj; assertEquals(ONE_SECOND, objAsAction.getDuration()); }
public Long getDuration() { return duration; }
WaitAction extends SymbolAction { public Long getDuration() { return duration; } }
WaitAction extends SymbolAction { public Long getDuration() { return duration; }  }
WaitAction extends SymbolAction { public Long getDuration() { return duration; }  @Override ExecuteResult execute(ConnectorManager connector); Long getDuration(); void setDuration(Long duration); }
WaitAction extends SymbolAction { public Long getDuration() { return duration; }  @Override ExecuteResult execute(ConnectorManager connector); Long getDuration(); void setDuration(Long duration);  }