use of com.vaadin.flow.server.VaadinService in project flow by vaadin.
the class FrontendUtilsTest method formattingError_assetsByChunkIsCorrectlyParsedFromStats.
@Test
public void formattingError_assetsByChunkIsCorrectlyParsedFromStats() throws IOException, ServiceException {
VaadinService service = setupStatsAssetMocks("MissFormatStats.json");
String statsAssetsByChunkName = FrontendUtils.getStatsAssetsByChunkName(service);
Assert.assertEquals("{\"bundle\": \"build/vaadin-bundle-1111.cache.js\"}", statsAssetsByChunkName);
}
use of com.vaadin.flow.server.VaadinService in project flow by vaadin.
the class SpringServletTest method pushURL_rootMappingAndCustomURLWithContextVaadinServletPrefix_isNotAdditionallyPrefixed.
@Test
public void pushURL_rootMappingAndCustomURLWithContextVaadinServletPrefix_isNotAdditionallyPrefixed() throws ServletException {
final Properties properties = new Properties();
properties.setProperty("pushURL", "context://vaadinServlet/customUrl");
VaadinService service = SpringInstantiatorTest.getService(context, properties, true);
Assert.assertEquals("context://vaadinServlet/customUrl", service.getDeploymentConfiguration().getPushURL());
}
use of com.vaadin.flow.server.VaadinService in project flow by vaadin.
the class SpringServletTest method pushURL_rootMappingAndCustomURLWithVaadinServletPrefix_isNotAdditionallyPrefixed.
@Test
public void pushURL_rootMappingAndCustomURLWithVaadinServletPrefix_isNotAdditionallyPrefixed() throws ServletException {
final Properties properties = new Properties();
properties.setProperty("pushURL", "/vaadinServlet/customUrl");
VaadinService service = SpringInstantiatorTest.getService(context, properties, true);
Assert.assertEquals("context://vaadinServlet/customUrl", service.getDeploymentConfiguration().getPushURL());
}
use of com.vaadin.flow.server.VaadinService in project flow by vaadin.
the class SpringServletTest method pushURL_rootMappingAndCustomURLWithPrecedingSlash_isPrefixedWithContextVaadinMapping.
@Test
public void pushURL_rootMappingAndCustomURLWithPrecedingSlash_isPrefixedWithContextVaadinMapping() throws ServletException {
final Properties configProperties = new Properties();
configProperties.setProperty("pushURL", "/customUrl");
VaadinService service = SpringInstantiatorTest.getService(context, configProperties, true);
Assert.assertEquals("context://vaadinServlet/customUrl", service.getDeploymentConfiguration().getPushURL());
}
use of com.vaadin.flow.server.VaadinService in project flow by vaadin.
the class SpringServletTest method pushURL_rootMapping_isPrefixedWithContextVaadinMapping.
@Test
public void pushURL_rootMapping_isPrefixedWithContextVaadinMapping() throws ServletException {
VaadinService service = SpringInstantiatorTest.getService(context, new Properties(), true);
Assert.assertEquals("context://vaadinServlet/", service.getDeploymentConfiguration().getPushURL());
}
Aggregations