Examples of preferences()


Examples of com.opera.core.systems.testing.drivers.TestDriver.preferences()

  public void testDefaultPort() {
    DesiredCapabilities c = new DesiredCapabilities();
    c.setCapability(OperaSettings.Capability.PORT.getCapability(), -1);

    TestDriver a = new TestDriverBuilder().using(c).get();
    assertEquals(7001, a.preferences().get("Developer Tools", "Proxy Port").getValue());
    a.quit();
  }

  @Test
  public void testRandomPort() {
View Full Code Here

Examples of com.opera.core.systems.testing.drivers.TestDriver.preferences()

      } else {
        fail("Unexpected exception: " + e);
        return;
      }
    }
    Assert.assertNotSame("7001", a.preferences().get("Developer Tools", "Proxy Port").toString());
    a.quit();
  }

  @Test
  @Ignore(products = CORE,
View Full Code Here

Examples of com.opera.core.systems.testing.drivers.TestDriver.preferences()

        fail("Unexpected exception: " + e);
        return;
      }
    }

    assertEquals(9876, a.preferences().get("Developer Tools", "Proxy Port").getValue());
    a.quit();
  }

}
View Full Code Here

Examples of com.opera.core.systems.testing.drivers.TestDriver.preferences()

    File profile = tmp.newFolder();
    settings.setProfile(profile.getPath());
    TestDriver driver = new TestDriverBuilder().using(settings).get();

    assertNotNull(driver);
    assertEquals(profile, driver.preferences().get("User Prefs", "Opera Directory").getValue());
    assertEquals(profile, driver.getSettings().profile().getDirectory());

    driver.quit();
  }
View Full Code Here

Examples of com.opera.core.systems.testing.drivers.TestDriver.preferences()

    settings.setHost(host);
    TestDriver driver = new TestDriverBuilder().using(settings).get();

    assertNotNull(driver);
    assertEquals(host, driver.getSettings().getHost());
    assertEquals(host, driver.preferences().get("Developer Tools", "Proxy Host").getValue());

    driver.quit();
  }

  @Test
View Full Code Here

Examples of net.jini.core.constraint.InvocationConstraints.preferences()

        /*
         * Verify that the second constraint, pref, is added as a preference
         * if it is a non-null value.
         */
        Set prefs = ic.preferences();

        if (pref == null || pref == req) {
            if (!prefs.isEmpty()) {
                String s = "Expected that no preference has been added"
                        + " when pref is null or is duplicate of req;"
View Full Code Here

Examples of net.jini.core.constraint.InvocationConstraints.preferences()

        /*
         * Verify that the second constraint, pref, is added as a preference
         * if it is a non-null value.
         */
        Set prefs = ic.preferences();

        if (pref == null) {
            if (!prefs.isEmpty()) {
                String s = "Expected that no preference has been added"
                        + " when pref is null;"
View Full Code Here

Examples of net.jini.core.constraint.InvocationConstraints.preferences()

        /*
         * Verify that the second constraint, pref, is added as a preference
         * if it is a non-null value.
         */
        Set prefs = ic.preferences();

        if (pref == null) {
            if (!prefs.isEmpty()) {
                String s = "Expected that no preference has been added"
                        + " when pref is null;"
View Full Code Here

Examples of net.jini.core.constraint.InvocationConstraints.preferences()

  InvocationConstraints ic = (constraints != null) ?
      constraints.getConstraints(getRegistrarTimeoutMethod) :
      InvocationConstraints.EMPTY;
  Collection reqs = new ArrayList(ic.requirements());
  reqs.add(new UnicastSocketTimeout(timeout));
  return getRegistrar(new InvocationConstraints(reqs, ic.preferences()));
    }

    /**
     * Returns a string representation of this object.
     * @return the string representation
View Full Code Here

Examples of net.jini.core.constraint.InvocationConstraints.preferences()

     InvocationConstraints.EMPTY :
     serverConstraints.getConstraints(method));
      if (integrity && !sc.requirements().contains(Integrity.YES)) {
    Collection requirements = new ArrayList(sc.requirements());
    requirements.add(Integrity.YES);
    sc = new InvocationConstraints(requirements, sc.preferences());
      }
     
      InvocationConstraints unfulfilled = request.checkConstraints(sc);
      for (Iterator i = unfulfilled.requirements().iterator();
     i.hasNext();)
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.