Exemplo n.º 1
0
 @Test
 public void testGetPSTToken() {
   assertEquals(PSTricksConstants.TOKEN_LABELS_DISPLAYED_ALL, PlottingStyle.ALL.getPSTToken());
   assertEquals(PSTricksConstants.TOKEN_LABELS_DISPLAYED_NONE, PlottingStyle.NONE.getPSTToken());
   assertEquals(PSTricksConstants.TOKEN_LABELS_DISPLAYED_X, PlottingStyle.X.getPSTToken());
   assertEquals(PSTricksConstants.TOKEN_LABELS_DISPLAYED_Y, PlottingStyle.Y.getPSTToken());
 }
Exemplo n.º 2
0
 @Test
 public void testIsY() {
   assertTrue(PlottingStyle.ALL.isY());
   assertTrue(PlottingStyle.Y.isY());
   assertFalse(PlottingStyle.X.isY());
   assertFalse(PlottingStyle.NONE.isY());
 }
Exemplo n.º 3
0
 @Test
 public void testGetStyle() {
   assertEquals(PlottingStyle.ALL, PlottingStyle.getStyle(null));
   assertEquals(PlottingStyle.ALL, PlottingStyle.getStyle("")); // $NON-NLS-1$
   assertEquals(PlottingStyle.getStyle(PlottingStyle.ALL.toString()), PlottingStyle.ALL);
   assertEquals(PlottingStyle.getStyle(PlottingStyle.NONE.toString()), PlottingStyle.NONE);
   assertEquals(PlottingStyle.getStyle(PlottingStyle.X.toString()), PlottingStyle.X);
   assertEquals(PlottingStyle.getStyle(PlottingStyle.Y.toString()), PlottingStyle.Y);
 }