Examples of Zip


Examples of org.openqa.selenium.io.Zip

  }

  private static class TestOperaProfile extends OperaProfile {

    public static OperaProfile fromJson(File directory, String json) throws IOException {
      new Zip().unzip(json, directory);
      return new OperaProfile(directory);
    }
View Full Code Here

Examples of org.openqa.selenium.io.Zip

   *
   * @return the JSON representation of this profile
   * @throws IOException if an I/O error occurs
   */
  public JSONObject toJson() throws IOException {
    String base64 = new Zip().zip(getDirectory());
    Map<String, String> map = ImmutableMap.of(
      "className", this.getClass().getName(),
      BASE64_JSON_KEY, base64);
   
    return new JSONObject(map);
View Full Code Here

Examples of org.openqa.selenium.io.Zip

   * @return a new profile representation
   * @throws IOException if an I/O error occurs
   */
  public static OperaProfile fromJson(String json) throws IOException {
    File directory = TemporaryFilesystem.getDefaultTmpFS().createTempDir("opera", "duplicate");
    new Zip().unzip(json, directory);
    return new OperaProfile(directory);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.