@Test public void testJSON() throws IOException { ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(incrementAction); IncrementCounterAction declareAction2 = (IncrementCounterAction) mapper.readValue(json, SymbolAction.class); assertEquals(incrementAction.getName(), declareAction2.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);  }