Package com.opera.core.systems

Examples of com.opera.core.systems.OperaSettings$OperaLogging


  private OperaLauncherBinary binary = null;
  private OperaLauncherProtocol protocol = null;
  private String crashlog = null;

  public OperaLauncherRunner() {
    this(new OperaSettings());
  }
View Full Code Here


    createDriverIfNecessary();
  }

  @AfterClass
  public static void resetSettings() {
    settings = new OperaSettings();
    spawnDriver = true;
  }
View Full Code Here

    }

    return new Statement() {
      @Override
      public void evaluate() throws Throwable {
        test.setSettings(new OperaSettings());
        AbstractTestCase.removeDriver();
        test.createDriverIfNecessary();
        statement.evaluate();
      }
    };
View Full Code Here

    }

    return new Statement() {
      @Override
      public void evaluate() throws Throwable {
        OperaSettings currentSettings = test.getSettings();

        OperaSettings newSettings = new OperaSettings();
        newSettings.setIdle(annotation.idle());
        newSettings.logging().setLevel(Level.parse(annotation.logLevel().toString()));

        // We only need to restart the driver if the settings are different
        if (currentSettings.useIdle() != newSettings.useIdle() ||
            currentSettings.logging().getLevel() != newSettings.logging().getLevel()) {
          test.setSettings(newSettings);
          AbstractTestCase.removeDriver();
        }

        statement.evaluate();
View Full Code Here

  private final ReentrantLock lock = new ReentrantLock();
  private CommandLine process = null;
  private boolean shutdown = false;

  public OperaInProcessRunner() {
    this(new OperaSettings());
  }
View Full Code Here

  protected OperaSettings settings;

  private final OperaProduct product;

  public AbstractTestDriverSupplier() {
    this(new OperaSettings());
  }
View Full Code Here

  public void setSettings(OperaSettings newSettings) {
    settings = newSettings;

    // Only override logging level if it has the default value
    if (new OperaSettings().logging().getLevel() == settings.logging().getLevel()) {
      settings.logging().setLevel(Level.INFO);
    }
  }
View Full Code Here

   *
   * @param capabilities capabilities for the driver
   * @return a self reference
   */
  public TestDriverBuilder using(Capabilities capabilities) {
    this.settings = new OperaSettings().merge(capabilities);
    return this;
  }
View Full Code Here

  protected final Logger logger = Logger.getLogger(getClass().getName());
  protected final OperaSettings settings;

  public AbstractOperaRunner() {
    this(new OperaSettings());
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.OperaSettings$OperaLogging

Copyright © 2018 www.massapicom. 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.