Beispiel #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);
 }
Beispiel #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);
 }