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.

VaadinSessionAttributeTest.java 612B

123456789101112131415161718192021
  1. package com.vaadin.tests.application;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.elements.ButtonElement;
  5. import com.vaadin.testbench.elements.NotificationElement;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. public class VaadinSessionAttributeTest extends MultiBrowserTest {
  8. @Test
  9. public void testSessionAttribute() {
  10. openTestURL();
  11. $(ButtonElement.class).first().click();
  12. assertEquals("notification does not contain suitable text", "42 & 84",
  13. $(NotificationElement.class).first().getCaption());
  14. }
  15. }