@Test public void testJSONFile() throws IOException, URISyntaxException { ObjectMapper mapper = new ObjectMapper(); URI uri = getClass().getResource("/actions/StoreSymbolActions/SetVariableByCookieTestData.json").toURI(); File file = new File(uri); SymbolAction obj = mapper.readValue(file, SymbolAction.class); assertTrue(obj instanceof SetVariableByCookieAction); SetVariableByCookieAction objAsAction = (SetVariableByCookieAction) obj; assertEquals(VARIABLE_NAME, objAsAction.getName()); assertEquals(COOKIE_NAME, objAsAction.getValue()); assertEquals(SetVariableByCookieAction.CookieType.WEB, objAsAction.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);  }