Ejemplo n.º 1
0
 @Test
 public void testToString() {
   assertNotNull(TicksStyle.BOTTOM.toString());
   assertTrue(TicksStyle.BOTTOM.toString().length() > 0);
   assertNotNull(TicksStyle.FULL.toString());
   assertTrue(TicksStyle.FULL.toString().length() > 0);
   assertNotNull(TicksStyle.TOP.toString());
   assertTrue(TicksStyle.TOP.toString().length() > 0);
 }
Ejemplo n.º 2
0
 @Test
 public void testGetStyle() {
   assertEquals(TicksStyle.FULL, TicksStyle.getStyle(null));
   assertEquals(TicksStyle.FULL, TicksStyle.getStyle("")); // $NON-NLS-1$
   assertEquals(TicksStyle.getStyle(TicksStyle.BOTTOM.toString()), TicksStyle.BOTTOM);
   assertEquals(TicksStyle.getStyle(TicksStyle.FULL.toString()), TicksStyle.FULL);
   assertEquals(TicksStyle.getStyle(TicksStyle.TOP.toString()), TicksStyle.TOP);
   assertEquals(
       TicksStyle.getStyle(PSTricksConstants.TOKEN_TICKS_STYLE_BOTTOM), TicksStyle.BOTTOM);
   assertEquals(TicksStyle.getStyle(PSTricksConstants.TOKEN_TICKS_STYLE_FULL), TicksStyle.FULL);
   assertEquals(TicksStyle.getStyle(PSTricksConstants.TOKEN_TICKS_STYLE_TOP), TicksStyle.TOP);
 }
Ejemplo n.º 3
0
 @Test
 public void testIsTop() {
   assertTrue(TicksStyle.FULL.isTop());
   assertTrue(TicksStyle.TOP.isTop());
   assertFalse(TicksStyle.BOTTOM.isTop());
 }
Ejemplo n.º 4
0
 @Test
 public void testGetPSTToken() {
   assertEquals(PSTricksConstants.TOKEN_TICKS_STYLE_FULL, TicksStyle.FULL.getPSTToken());
   assertEquals(PSTricksConstants.TOKEN_TICKS_STYLE_BOTTOM, TicksStyle.BOTTOM.getPSTToken());
   assertEquals(PSTricksConstants.TOKEN_TICKS_STYLE_TOP, TicksStyle.TOP.getPSTToken());
 }