123456789101112131415161718192021222324252627282930 |
- package com.vaadin.v7.tests.design;
-
- import static org.hamcrest.CoreMatchers.is;
- import static org.hamcrest.CoreMatchers.not;
- import static org.hamcrest.CoreMatchers.nullValue;
- import static org.hamcrest.MatcherAssert.assertThat;
-
- import java.io.FileNotFoundException;
-
- import org.junit.Test;
-
- import com.vaadin.ui.declarative.Design;
- import com.vaadin.ui.declarative.DesignContext;
-
- /**
- * Just top level test case that contains all synchronizable components
- *
- * @author Vaadin Ltd
- */
- public class ParseAllSupportedComponentsTest {
-
- @Test
- public void allComponentsAreParsed() throws FileNotFoundException {
- DesignContext ctx = Design.read(
- getClass().getResourceAsStream("all-components.html"), null);
-
- assertThat(ctx, is(not(nullValue())));
- assertThat(ctx.getRootComponent(), is(not(nullValue())));
- }
- }
|