本文整理汇总了Java中org.jfree.date.MonthConstants.FEBRUARY属性的典型用法代码示例。如果您正苦于以下问题:Java MonthConstants.FEBRUARY属性的具体用法?Java MonthConstants.FEBRUARY怎么用?Java MonthConstants.FEBRUARY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.jfree.date.MonthConstants
的用法示例。
在下文中一共展示了MonthConstants.FEBRUARY属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
/**
* Common test setup.
*/
protected void setUp() {
this.jan1900 = new Month(MonthConstants.JANUARY, 1900);
this.feb1900 = new Month(MonthConstants.FEBRUARY, 1900);
this.nov9999 = new Month(MonthConstants.NOVEMBER, 9999);
this.dec9999 = new Month(MonthConstants.DECEMBER, 9999);
}
示例2: setUp
/**
* Common test setup.
*/
@Before
public void setUp() {
this.jan1900 = new Month(MonthConstants.JANUARY, 1900);
this.feb1900 = new Month(MonthConstants.FEBRUARY, 1900);
this.nov9999 = new Month(MonthConstants.NOVEMBER, 9999);
this.dec9999 = new Month(MonthConstants.DECEMBER, 9999);
}
示例3: test28Feb1900ToSerial
/**
* Create a date for 28-Feb-1900: the serial number should be 60.
*/
public void test28Feb1900ToSerial() {
SpreadsheetDate d = new SpreadsheetDate(28, MonthConstants.FEBRUARY,
1900);
assertEquals(60, d.toSerial());
}
示例4: test01Feb2000ToSerial
/**
* Create a date for 01-Feb-2000: the serial number should be 36557.
*/
public void test01Feb2000ToSerial() {
SpreadsheetDate d = new SpreadsheetDate(1, MonthConstants.FEBRUARY,
2000);
assertEquals(36557, d.toSerial());
}
示例5: test28Feb2000ToSerial
/**
* Create a date for 28-Feb-2000: the serial number should be 36584.
*/
public void test28Feb2000ToSerial() {
SpreadsheetDate d = new SpreadsheetDate(28, MonthConstants.FEBRUARY,
2000);
assertEquals(36584, d.toSerial());
}
示例6: test29feb2000ToSerial
/**
* Create a date for 29-Feb-2000: the serial number should be 36585.
*/
public void test29feb2000ToSerial() {
SpreadsheetDate d = new SpreadsheetDate(29, MonthConstants.FEBRUARY,
2000);
assertEquals(36585, d.toSerial());
}