* Bump jetty.version from 9.4.17.v20190418 to 9.4.34.v20201102 Bumps `jetty.version` from 9.4.17.v20190418 to 9.4.34.v20201102. Updates `jetty-server` from 9.4.17.v20190418 to 9.4.34.v20201102 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.17.v20190418...jetty-9.4.34.v20201102) Updates `jetty-servlets` from 9.4.17.v20190418 to 9.4.34.v20201102 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.17.v20190418...jetty-9.4.34.v20201102) Updates `websocket-server` from 9.4.17.v20190418 to 9.4.34.v20201102 Updates `jetty-webapp` from 9.4.17.v20190418 to 9.4.34.v20201102 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.17.v20190418...jetty-9.4.34.v20201102) Updates `jetty-util` from 9.4.17.v20190418 to 9.4.34.v20201102 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.17.v20190418...jetty-9.4.34.v20201102) Updates `jetty-proxy` from 9.4.17.v20190418 to 9.4.34.v20201102 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.17.v20190418...jetty-9.4.34.v20201102) Updates `jetty-maven-plugin` from 9.4.17.v20190418 to 9.4.34.v20201102 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.17.v20190418...jetty-9.4.34.v20201102) Signed-off-by: dependabot[bot] <support@github.com> * Merge branch 'master' into dependabot/maven/jetty.version-9.4.34.v20201102 * Test fixestags/7.7.23
<!-- Dependency unpack directory --> | <!-- Dependency unpack directory --> | ||||
<dependency.unpack.directory>${project.build.directory}/dependency-unpack</dependency.unpack.directory> | <dependency.unpack.directory>${project.build.directory}/dependency-unpack</dependency.unpack.directory> | ||||
<jetty.version>9.4.17.v20190418</jetty.version> | |||||
<jetty.version>9.4.34.v20201102</jetty.version> | |||||
<!-- Sonar properties --> | <!-- Sonar properties --> | ||||
<sonar.java.source>8</sonar.java.source> | <sonar.java.source>8</sonar.java.source> |
<properties> | <properties> | ||||
<maven.compiler.source>1.8</maven.compiler.source> | <maven.compiler.source>1.8</maven.compiler.source> | ||||
<maven.compiler.target>1.8</maven.compiler.target> | <maven.compiler.target>1.8</maven.compiler.target> | ||||
<jetty.version>9.3.7.v20160115</jetty.version> | |||||
<jetty.version>9.4.34.v20201102</jetty.version> | |||||
<phantomjs.version>2.1.1</phantomjs.version> | <phantomjs.version>2.1.1</phantomjs.version> | ||||
<vaadin.version>${project.version}</vaadin.version> | <vaadin.version>${project.version}</vaadin.version> | ||||
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version> | <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version> |
@Test | @Test | ||||
public void testInvalidApplicationClass() { | public void testInvalidApplicationClass() { | ||||
openTestURL(); | openTestURL(); | ||||
String exceptionMessage = getDriver().findElement(By.xpath("//pre[2]")) | |||||
String exceptionMessage = getDriver().findElement(By.xpath("//pre[1]")) | |||||
.getText(); | .getText(); | ||||
String expected = "ServletException: java.lang.ClassNotFoundException: ClassThatIsNotPresent"; | String expected = "ServletException: java.lang.ClassNotFoundException: ClassThatIsNotPresent"; | ||||
assertTrue(String.format( | assertTrue(String.format( |
package com.vaadin.tests.components.ui; | package com.vaadin.tests.components.ui; | ||||
import static org.junit.Assert.assertEquals; | |||||
import static org.junit.Assert.assertTrue; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
import org.openqa.selenium.By; | import org.openqa.selenium.By; | ||||
WebElement heading = findElement(By.tagName("h2")); | WebElement heading = findElement(By.tagName("h2")); | ||||
assertEquals("HTTP ERROR 500", heading.getText()); | |||||
assertTrue("Unexpected heading: " + heading.getText(), | |||||
heading.getText().startsWith("HTTP ERROR 500")); | |||||
} | } | ||||
} | } |
assertTrue("Page does not contain the given text", | assertTrue("Page does not contain the given text", | ||||
driver.getPageSource().contains("HTTP ERROR 404")); | driver.getPageSource().contains("HTTP ERROR 404")); | ||||
assertTrue("Page does not contain the given text", | assertTrue("Page does not contain the given text", | ||||
driver.getPageSource().contains("Problem accessing /run/APP/")); | |||||
driver.getPageSource().contains("/run/APP/")); | |||||
assertTrue("Page does not contain the given text", | |||||
driver.getPageSource().contains( | |||||
"Request was not handled by any registered handler.")); | |||||
} | } | ||||
@Test | @Test |