"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "flow-tests/test-root-context/src/main/java/com/vaadin/flow/uitest/ui/TestingServiceInitListener.java" between
vaadin-flow-4.0.4.tar.gz and vaadin-flow-4.0.5.tar.gz

About: Vaadin flow is a Java framework binding Vaadin web components to Java.

TestingServiceInitListener.java  (vaadin-flow-4.0.4):TestingServiceInitListener.java  (vaadin-flow-4.0.5)
skipping to change at line 47 skipping to change at line 47
private boolean redirected; private boolean redirected;
@Override @Override
public void serviceInit(ServiceInitEvent event) { public void serviceInit(ServiceInitEvent event) {
event.getSource().addUIInitListener(this::handleUIInit); event.getSource().addUIInitListener(this::handleUIInit);
initCount.incrementAndGet(); initCount.incrementAndGet();
RouteConfiguration configuration = RouteConfiguration RouteConfiguration configuration = RouteConfiguration
.forApplicationScope(); .forApplicationScope();
if (!configuration // lock registry from any other updates to get registrations correctly.
.isPathAvailable(DYNAMICALLY_REGISTERED_ROUTE)) { configuration.getHandledRegistry().update(() -> {
configuration.setRoute(DYNAMICALLY_REGISTERED_ROUTE, if (!configuration.isPathRegistered(DYNAMICALLY_REGISTERED_ROUTE)) {
configuration.setRoute(DYNAMICALLY_REGISTERED_ROUTE,
DynamicallyRegisteredRoute.class); DynamicallyRegisteredRoute.class);
} }
});
event.addRequestHandler((session, request, response) -> { event.addRequestHandler((session, request, response) -> {
requestCount.incrementAndGet(); requestCount.incrementAndGet();
return false; return false;
}); });
} }
public static int getInitCount() { public static int getInitCount() {
return initCount.get(); return initCount.get();
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)