Package com.opera.core.systems.testing.drivers

Examples of com.opera.core.systems.testing.drivers.TestOperaDriverSupplier


    }
  }

  @Test
  public void testOperaDriverSupplierSuppliesTestOperaDriver() {
    supplier = new TestOperaDriverSupplier();
    assertTrue(supplier.supplies(TestOperaDriver.class));
  }
View Full Code Here


    assertTrue(supplier.supplies(TestOperaDesktopDriver.class));
  }

  @Test
  public void testOperaDriverSupplierAutostarts() {
    assertTrue(new TestOperaDriverSupplier().getSettings().autostart());
  }
View Full Code Here

    assertTrue(new TestOperaDesktopDriverSupplier().getSettings().autostart());
  }

  @Test
  public void testOperaDriverSupplierProduct() {
    assertEquals(OperaProduct.DESKTOP, new TestOperaDriverSupplier().getSettings().getProduct());
  }
View Full Code Here

                 new TestOperaDesktopDriverSupplier().getSettings().getProduct());
  }

  @Test
  public void testOperaDriverSupplierOverridesProductInCustomSettings() {
    supplier = new TestOperaDriverSupplier();
    supplier.setSettings(customSettings);
    assertEquals(OperaProduct.DESKTOP, supplier.getSettings().getProduct());
  }
View Full Code Here

    assertEquals(OperaProduct.DESKTOP, supplier.getSettings().getProduct());
  }

  @Test
  public void testDriverSupplierOnlyOverridesLoggingLevelIfDefaultValue() {
    supplier = new TestOperaDriverSupplier();
    assertEquals(Level.INFO, supplier.getSettings().logging().getLevel());

    supplier.setSettings(customSettings);
    assertEquals(Level.CONFIG, supplier.getSettings().logging().getLevel());
  }
View Full Code Here

  public TestOperaDriver driver;

  @Before
  public void beforeEach() {
    driver = (TestOperaDriver) new TestDriverBuilder(new TestOperaDriverSupplier()).get();
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.testing.drivers.TestOperaDriverSupplier

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.