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.

EmptyTableTest.java 548B

1234567891011121314151617181920212223242526
  1. package com.vaadin.tests.components.table;
  2. import static org.junit.Assert.fail;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.elements.NotificationElement;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. public class EmptyTableTest extends MultiBrowserTest {
  7. @Test
  8. public void test() {
  9. setDebug(true);
  10. openTestURL();
  11. ensureNoErrors();
  12. }
  13. private void ensureNoErrors() {
  14. if (isElementPresent(NotificationElement.class)) {
  15. fail("Error notification was shown!");
  16. }
  17. }
  18. }