KrailOrg / krail-testApp

1 stars 0 forks source link

Update to Krail 0.16.0.0 causes test errors in CodedBrowser #37

Closed davidsowerby closed 6 years ago

davidsowerby commented 6 years ago

The CodedBrowser 'hack' for managing scopes and sessions looks like it fails under 0.16.0.0

1) Error in custom provider, uk.q3c.krail.core.guice.uiscope.UIScopeException: The UI and its UIKey have got out of sync. Results are unpredictable. This can happen if you include UIScoped components in your ScopedUIProvider, or you are testing and have not set up the test fixture correctly. For the latter, use TestUIScopeModule, or try sub-classing UITestBase and calling createTestUI() or createBasicUI() to prepare the UIScope correctly. If you are not testing please report a bug at uk.q3c.krail.core.eventbus.VaadinEventBusModule.providesUIBus(VaadinEventBusModule.java:165)

davidsowerby commented 6 years ago

This appears only to happen when all tests are run. If run individually they are Ok. I suspect there is some test pollution through the use of static variables for holding the injector?