Skip to content

Commit

Permalink
chore: fix broken test due to flow changes (#734)
Browse files Browse the repository at this point in the history
No need to use VaadinServletService, VaadinService is enough.
  • Loading branch information
Pekka Hyvönen authored Mar 5, 2021
1 parent fac154d commit bcc229a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
import com.vaadin.flow.function.DeploymentConfiguration;
import com.vaadin.flow.i18n.I18NProvider;
import com.vaadin.flow.server.ServiceInitEvent;
import com.vaadin.flow.server.VaadinService;
import com.vaadin.flow.server.VaadinServiceInitListener;
import com.vaadin.flow.server.VaadinServletService;
import com.vaadin.flow.server.startup.ApplicationConfiguration;
import com.vaadin.flow.spring.SpringInstantiator;
import com.vaadin.flow.spring.SpringServlet;
Expand Down Expand Up @@ -159,13 +159,13 @@ public void createComponent_componentIsCreatedOnEveryCall()
Assert.assertNotEquals(component, anotherComponent);
}

public static VaadinServletService getService(ApplicationContext context,
public static VaadinService getService(ApplicationContext context,
Properties configProperties) throws ServletException {
return getService(context, configProperties, false);
}

public static VaadinServletService getService(ApplicationContext context,
Properties configProperties, boolean rootMapping)
public static VaadinService getService(ApplicationContext context,
Properties configProperties, boolean rootMapping)
throws ServletException {
SpringServlet servlet = new SpringServlet(context, rootMapping) {
@Override
Expand Down

0 comments on commit bcc229a

Please sign in to comment.