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.

ParseLegacyPrefixTest.java 846B

1234567891011121314151617181920212223242526272829
  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. * Test reading a design with all components using the legacy prefix.
  12. */
  13. public class ParseLegacyPrefixTest {
  14. @Test
  15. public void allComponentsAreParsed() throws FileNotFoundException {
  16. DesignContext ctx = Design.read(
  17. getClass().getResourceAsStream("all-components-legacy.html"),
  18. null);
  19. assertThat(ctx, is(not(nullValue())));
  20. assertThat(ctx.getRootComponent(), is(not(nullValue())));
  21. }
  22. }