Skip to content

Instantly share code, notes, and snippets.

function test(fixture, element) {
// given
// var changeCallback = jasmine.createSpy('changeCallback');
var options = {
disabled: true,
// change: changeCallback
};
// when
element.pickList(options);
@Override
public boolean canEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier) {
if (RemoteWebDriver.class == droneType || ReusableRemoteWebDriver.class == droneType) {
return true;
}
Class<?> realInstanceClass = instance.asInstance(droneType).getClass();
if (RemoteWebDriver.class.isAssignableFrom(realInstanceClass)
doubleMethodWebDrivers(org.jboss.arquillian.drone.webdriver.example.TripleDroneInjectionTestCase) Time elapsed: 0.005 sec <<< ERROR!
java.lang.IllegalArgumentException: Retrieved a null from context, which is not a valid Drone browser object
at org.jboss.arquillian.drone.impl.Validate.notNull(Validate.java:42)
at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:110)
at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:75)
at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
tripleMethodWebDrivers(org.jboss.arquillian.drone.webdriver.example.TripleDroneInjectionTestCase) Time elapsed: 3.399 sec <<< ERROR!
net.sf.cglib.core.CodeGenerationException: java.lang.IllegalAccessException-->Class org.openqa.selenium.remote.Augmenter$CompoundHandler can not access a member of class org.openqa.selenium.firefox.FirefoxDriver with modifiers "protected"
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:235)
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:220)
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:216)
at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:640)
at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:231)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
@Test
public void testCanEnhance() {
RemoteWebDriver remoteDriver = new RemoteWebDriver(new DesiredCapabilities());
RemoteWebDriver mockedRemoteDriver = mock(RemoteWebDriver.class);
InstanceOrCallableInstance instance1 = mock(InstanceOrCallableInstance.class);
InstanceOrCallableInstance instance2 = mock(InstanceOrCallableInstance.class);
InstanceOrCallableInstance instance3 = mock(InstanceOrCallableInstance.class);
doReturn(remoteDriver).when(instance1).asInstance(RemoteWebDriver.class);
doReturn(remoteDriver).when(instance1).asInstance(WebDriver.class);
public interface DataGrid<HEADER, RECORD, FOOTER> {
List<RECORD> getRow(int n);
RECORD getRecord(int row, int column);
int getNumberOfRows();
int getNumberOfColumns();
window.Graphene = window.Graphene || {};
window.Graphene.Page = window.Graphene.Page || {};
window.Graphene.Page.XHRHalter = (function() {
var STATE_CONSTRUCT = -3,
STATE_OPEN = -2,
STATE_SEND = -1,
STATE_UNITIALIZED = 0,
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>Arquillian test run report</title>
<style type="text/css">
body { margin: 1em; padding: 0; }
h1 { font-size: 300%; margin: 0; padding: 0; display:inline; }
h1 > img { float:left; margin: 0 5px 0 0; }
h2 { font-size: 275%; margin: 0; padding: 0; }
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>Arquillian test run report</title>
<style type="text/css">
body { margin: 1em; padding: 0; }
h1 { font-size: 300%; margin: 0; padding: 0; display:inline; }
h1 > img { float:left; margin: 0 5px 0 0; }
h2 { font-size: 275%; margin: 0; padding: 0; }