@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); URI uri = getClass().getResource("/actions/StoreSymbolActions/IncrementCounterTestData.json").toURI(); File file = new File(uri); SymbolAction obj = mapper.readValue(file, SymbolAction.class); assertTrue(obj instanceof IncrementCounterAction); IncrementCounterAction objAsAction = (IncrementCounterAction) obj; assertEquals(TEST_NAME, objAsAction.getName()); }
public String getName() { return name; }
IncrementCounterAction extends SymbolAction { public String getName() { return name; } }
IncrementCounterAction extends SymbolAction { public String getName() { return name; }  }
IncrementCounterAction extends SymbolAction { public String getName() { return name; }  @Override ExecuteResult execute(ConnectorManager connector); String getName(); void setName(String name); int getIncrementBy(); void setIncrementBy(int incrementBy); }
IncrementCounterAction extends SymbolAction { public String getName() { return name; }  @Override ExecuteResult execute(ConnectorManager connector); String getName(); void setName(String name); int getIncrementBy(); void setIncrementBy(int incrementBy);  }