Example usage for org.openqa.selenium.io Zip Zip

List of usage examples for org.openqa.selenium.io Zip Zip

Introduction

In this page you can find the example usage for org.openqa.selenium.io Zip Zip.

Prototype

Zip

Source Link

Usage

From source file:com.opera.core.systems.OperaProfileTest.java

License:Apache License

@Test
public void testToJson() throws IOException, JSONException {
    profile = new OperaProfile(existingProfile);

    String json = profile.toJson().getString(OperaProfile.BASE64_JSON_KEY);
    new Zip().unzip(json, temporaryProfile);
    OperaProfile extractedProfile = new OperaProfile(temporaryProfile.getPath());

    assertThat(profile, matchesProfile(extractedProfile));
}