@Test public void behaviour() { TestBehaviourTwo behaviour = handler.behaviour(TestBehaviourTwo.class); assertTrue("incorrect behaviour", behaviour instanceof TestBehaviourTwoImpl); }
@Override public <T extends Behaviour> T behaviour(Class<T> behaviourClass) { return data.driver().createBehaviour(this, behaviourClass); }
DefaultDriverHandler implements DriverHandler { @Override public <T extends Behaviour> T behaviour(Class<T> behaviourClass) { return data.driver().createBehaviour(this, behaviourClass); } }
DefaultDriverHandler implements DriverHandler { @Override public <T extends Behaviour> T behaviour(Class<T> behaviourClass) { return data.driver().createBehaviour(this, behaviourClass); } DefaultDriverHandler(DriverData data); }
DefaultDriverHandler implements DriverHandler { @Override public <T extends Behaviour> T behaviour(Class<T> behaviourClass) { return data.driver().createBehaviour(this, behaviourClass); } DefaultDriverHandler(DriverData data); @Override Driver driver(); @Override DriverData data(); @Override T behaviour(Class<T> behaviourClass); @Override T get(Class<T> serviceClass); @Override String toString(); }
DefaultDriverHandler implements DriverHandler { @Override public <T extends Behaviour> T behaviour(Class<T> behaviourClass) { return data.driver().createBehaviour(this, behaviourClass); } DefaultDriverHandler(DriverData data); @Override Driver driver(); @Override DriverData data(); @Override T behaviour(Class<T> behaviourClass); @Override T get(Class<T> serviceClass); @Override String toString();  }