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.

ParseAllSupportedComponentsTest.java 860B

123456789101112131415161718192021222324252627282930
  1. package com.vaadin.v7.tests.design;
  2. import static org.hamcrest.CoreMatchers.is;
  3. import static org.hamcrest.CoreMatchers.not;
  4. import static org.hamcrest.CoreMatchers.nullValue;
  5. import static org.hamcrest.MatcherAssert.assertThat;
  6. import java.io.FileNotFoundException;
  7. import org.junit.Test;
  8. import com.vaadin.ui.declarative.Design;
  9. import com.vaadin.ui.declarative.DesignContext;
  10. /**
  11. * Just top level test case that contains all synchronizable components
  12. *
  13. * @author Vaadin Ltd
  14. */
  15. public class ParseAllSupportedComponentsTest {
  16. @Test
  17. public void allComponentsAreParsed() throws FileNotFoundException {
  18. DesignContext ctx = Design.read(
  19. getClass().getResourceAsStream("all-components.html"), null);
  20. assertThat(ctx, is(not(nullValue())));
  21. assertThat(ctx.getRootComponent(), is(not(nullValue())));
  22. }
  23. }