This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface DataGrid<HEADER, RECORD, FOOTER> { | |
List<RECORD> getRow(int n); | |
RECORD getRecord(int row, int column); | |
int getNumberOfRows(); | |
int getNumberOfColumns(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test(fixture, element) { | |
// given | |
// var changeCallback = jasmine.createSpy('changeCallback'); | |
var options = { | |
disabled: true, | |
// change: changeCallback | |
}; | |
// when | |
element.pickList(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunAsClient | |
public class TestFooBar extends Arquillian { | |
@Drone | |
private WebDriver browser; | |
@Test | |
public void testDeletion() { | |
WebDriver browser = GrapheneContext.getContextFor(Default.class).getWebDriver(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeFragment { | |
private AdvancedInteractions advancedInteractions; | |
public AdvancedInteractions advanced() { | |
if(advancedInteractions == null) { | |
advancedInteractions = new AdvancedInteractions(); | |
} | |
return advancedInteractions; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.richfaces.tests.page.fragments.impl; | |
import org.jboss.arquillian.graphene.enricher.findby.FindBy; | |
import org.junit.Test; | |
import org.openqa.selenium.WebElement; | |
import org.richfaces.tests.page.fragments.impl.accordion.RichFacesAccordion; | |
public class FooBar { | |
@FindBy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.richfaces.tests.page.fragments.impl; | |
import org.jboss.arquillian.graphene.enricher.findby.FindBy; | |
import org.junit.Test; | |
import org.openqa.selenium.WebElement; | |
import org.richfaces.tests.page.fragments.impl.accordion.RichFacesAccordion; | |
public class FooBar { | |
@FindBy |