@Override protected Object createTest() throws Exception { _testInstance = super.createTest(); _testKit = new SwitchYardTestKit(_testInstance);
@Override protected Object createTest() throws Exception { _testInstance = super.createTest(); _testKit = new SwitchYardTestKit(_testInstance); for (TestMixIn mixIn : _testKit.getMixIns()) { set(mixIn, PropertyMatchResolution.EQUALS); } try { _testKit.start(); } catch (Throwable t) { LOG.error("Error while test kit startup", t); _testKit.cleanup(); throw new Exception(t); } set(_testKit, PropertyMatchResolution.EQUALS); set(_testKit.getDeployment(), PropertyMatchResolution.ASSIGNABLE); set(_testKit.getConfigModel(), PropertyMatchResolution.ASSIGNABLE); set(_testKit.getServiceDomain(), PropertyMatchResolution.ASSIGNABLE); set(_testKit.getServiceDomain().getTransformerRegistry(), PropertyMatchResolution.ASSIGNABLE); set(_testKit.getServiceDomain().getProperty(SwitchYardCamelContext.CAMEL_CONTEXT_PROPERTY), PropertyMatchResolution.ASSIGNABLE); setInvokers(); return _testInstance; }