@Test public void testJSON() throws IOException { ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(setAction); SetVariableByCookieAction setAction2 = mapper.readValue(json, SetVariableByCookieAction.class); assertEquals(setAction.getName(), setAction2.getName()); assertEquals(setAction.getValue(), setAction2.getValue()); assertEquals(setAction.getCookieType(), setAction2.getCookieType()); }
public CookieType getCookieType() { return cookieType; }
SetVariableByCookieAction extends SetVariableAction { public CookieType getCookieType() { return cookieType; } }
SetVariableByCookieAction extends SetVariableAction { public CookieType getCookieType() { return cookieType; }  }
SetVariableByCookieAction extends SetVariableAction { public CookieType getCookieType() { return cookieType; }  @Override ExecuteResult execute(ConnectorManager connector); CookieType getCookieType(); void setCookieType(CookieType type); }
SetVariableByCookieAction extends SetVariableAction { public CookieType getCookieType() { return cookieType; }  @Override ExecuteResult execute(ConnectorManager connector); CookieType getCookieType(); void setCookieType(CookieType type);  }