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.

GridStateTest.java 772B

123456789101112131415161718192021222324252627282930
  1. package com.vaadin.v7.tests.server.component.grid;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import com.vaadin.v7.shared.ui.grid.GridState;
  5. import com.vaadin.v7.ui.Grid;
  6. /**
  7. * Tests for Grid State.
  8. *
  9. */
  10. public class GridStateTest {
  11. @Test
  12. public void getPrimaryStyleName_gridHasCustomPrimaryStyleName() {
  13. Grid grid = new Grid();
  14. GridState state = new GridState();
  15. assertEquals("Unexpected primary style name", state.primaryStyleName,
  16. grid.getPrimaryStyleName());
  17. }
  18. @Test
  19. public void gridStateHasCustomPrimaryStyleName() {
  20. GridState state = new GridState();
  21. assertEquals("Unexpected primary style name", "v-grid",
  22. state.primaryStyleName);
  23. }
  24. }