Examples of toSerial()


Examples of org.jfree.date.SpreadsheetDate.toSerial()

    /**
     * Create a date for 1-Jan-2000: the serial number should be 36526.
     */
    public void test01Jan2000ToSerial() {
        final SpreadsheetDate d = new SpreadsheetDate(1, SerialDate.JANUARY, 2000);
        assertEquals(36526, d.toSerial());
    }

    /**
     * Create a date for 31-Jan-2000: the serial number should be 36556.
     */
 
View Full Code Here

Examples of org.jfree.date.SpreadsheetDate.toSerial()

    /**
     * Create a date for 31-Jan-2000: the serial number should be 36556.
     */
    public void test31Jan2000ToSerial() {
        final SpreadsheetDate d = new SpreadsheetDate(31, SerialDate.JANUARY, 2000);
        assertEquals(36556, d.toSerial());
    }

    /**
     * Create a date for 01-Feb-2000: the serial number should be 36557.
     */
 
View Full Code Here

Examples of org.jfree.date.SpreadsheetDate.toSerial()

    /**
     * Create a date for 01-Feb-2000: the serial number should be 36557.
     */
    public void test01Feb2000ToSerial() {
        final SpreadsheetDate d = new SpreadsheetDate(1, SerialDate.FEBRUARY, 2000);
        assertEquals(36557, d.toSerial());
    }

    /**
     * Create a date for 28-Feb-2000: the serial number should be 36584.
     */
 
View Full Code Here

Examples of org.jfree.date.SpreadsheetDate.toSerial()

    /**
     * Create a date for 28-Feb-2000: the serial number should be 36584.
     */
    public void test28Feb2000ToSerial() {
        final SpreadsheetDate d = new SpreadsheetDate(28, SerialDate.FEBRUARY, 2000);
        assertEquals(36584, d.toSerial());
    }

    /**
     * Create a date for 29-Feb-2000: the serial number should be 36585.
     */
 
View Full Code Here

Examples of org.jfree.date.SpreadsheetDate.toSerial()

    /**
     * Create a date for 29-Feb-2000: the serial number should be 36585.
     */
    public void test29feb2000ToSerial() {
        final SpreadsheetDate d = new SpreadsheetDate(29, SerialDate.FEBRUARY, 2000);
        assertEquals(36585, d.toSerial());
    }

    /**
     * Create a date for 1-Mar-2000: the serial number should be 36586.
     */
 
View Full Code Here

Examples of org.jfree.date.SpreadsheetDate.toSerial()

    /**
     * Create a date for 1-Mar-2000: the serial number should be 36586.
     */
    public void test1mar2000ToSerial() {
        final SpreadsheetDate d = new SpreadsheetDate(1, SerialDate.MARCH, 2000);
        assertEquals(36586, d.toSerial());
    }

    /**
     * Serialize an instance, restore it, and check for equality.
     */
 
View Full Code Here

Examples of org.timerescue.element.Coordinate.toSerial()

   
    try {
      Element e = new Element();
      e.setCoordinate(6, 8);
      Coordinate c = new Coordinate(6,8);
      assertArrayEquals( c.toSerial().getBytes(), e.getCoordinate().toSerial().getBytes());
    } catch (Exception e) {
      fail("Exception: "+e.getMessage());
    }   
   
  }
View Full Code Here

Examples of org.timerescue.element.Coordinate.toSerial()

      cor2.fromSerial(param.getParamSerial("PROP"));
    } catch (InvalidSerialException e) {
      // TODO Auto-generated catch block
      fail(e.getMessage());
    }   
    assertArrayEquals(cor1.toSerial().getBytes(), cor2.toSerial().getBytes());
   
  }
 
  /**
   * Test method for {@link org.timerescue.information.InformationParametersSerials#fromSerial(java.lang.String)}.
View Full Code Here

Examples of org.timerescue.element.Coordinate.toSerial()

      ec2.fromSerial(temp);
    } catch (InvalidSerialException e) {
      fail(e.toString());
    }
    String temp1 = ec.toSerial();
    String temp2 = ec2.toSerial();
    assertArrayEquals(temp1.getBytes(), temp2.getBytes());   
  }

}
View Full Code Here

Examples of org.timerescue.element.Element.toSerial()

      ec2.fromSerial(temp);
    } catch (InvalidSerialException e) {
      fail(e.toString());
    }
    String temp1 = ec.toSerial();
    String temp2 = ec2.toSerial();
    assertArrayEquals(temp1.getBytes(), temp2.getBytes());
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.