You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ContextProtocolTest.java 601B

12345678910111213141516171819202122
  1. package com.vaadin.tests.applicationservlet;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.By;
  5. import com.vaadin.tests.tb3.SingleBrowserTest;
  6. public class ContextProtocolTest extends SingleBrowserTest {
  7. @Test
  8. public void contextPathCorrect() {
  9. openTestURL();
  10. // Added by bootstrap
  11. assertEquals("said", executeScript("return window.hello"));
  12. // Added by client side
  13. assertEquals(getBaseURL() + "/statictestfiles/image.png",
  14. findElement(By.id("image")).getAttribute("src"));
  15. }
  16. }