/**
*
*/
package test.ycsoft.commens.helper;
import static com.ycsoft.commons.helper.DateHelper.dateToStr;
import static com.ycsoft.commons.helper.DateHelper.getNextMonth;
import static com.ycsoft.commons.helper.DateHelper.strToDate;
import static org.junit.Assert.fail;
import java.util.Date;
import org.junit.Test;
import com.ycsoft.commons.exception.ErrorCode;
/**
* @author liujiaqi
*
*/
public class TestDateHelper {
@Test
public void testaaa(){
for(ErrorCode c:ErrorCode.values()){
if(c.getOttStatusCode().equals("40009"))
System.out.println(c.getDesc());
}
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#format(java.util.Date, java.lang.String)}.
*/
@Test
public void testFormatDateString() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#format(java.util.Date)}.
*/
@Test
public void testFormatDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#formatNow()}.
*/
@Test
public void testFormatNow() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#now()}.
*/
@Test
public void testNow() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getCurrYear()}.
*/
@Test
public void testGetCurrYear() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getCurrMonth()}.
*/
@Test
public void testGetCurrMonth() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getCurrDAY()}.
*/
@Test
public void testGetCurrDAY() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#format(java.lang.String)}.
*/
@Test
public void testFormatString() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#dateToStr(java.util.Date)}.
*/
@Test
public void testDateToStr() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#strToDate(java.lang.String)}.
*/
@Test
public void testStrToDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getDate(java.lang.String)}.
*/
@Test
public void testGetDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#addDate(java.util.Date, int)}.
*/
@Test
public void testAddDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getDiffDays(java.util.Date, java.util.Date)}.
*/
@Test
public void testGetDiffDays() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getDifferDays(java.lang.String, java.lang.String)}.
*/
@Test
public void testGetDifferDays() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getFirstDateInCurrentMonth()}.
*/
@Test
public void testGetFirstDateInCurrentMonth() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getLastDateInCurrentMonth()}.
*/
@Test
public void testGetLastDateInCurrentMonth() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getFirstDateInCurrentYear()}.
*/
@Test
public void testGetFirstDateInCurrentYear() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getNextMonth(java.util.Date)}.
*/
@Test
public void testGetNextMonth() {
Date neextdate = getNextMonth(strToDate("2009-02-28"));
junit.framework.Assert.assertEquals(dateToStr(neextdate), "2009-03-01");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getNextDay()}.
*/
@Test
public void testGetNextDay() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#getDateSumDay(java.lang.String)}.
*/
@Test
public void testGetDateSumDay() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#firstTimestampMonth(java.util.Date)}.
*/
@Test
public void testFirstTimestampMonth() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#lastTimestampDate(java.util.Date)}.
*/
@Test
public void testLastTimestampDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#compareDate(java.lang.String, java.lang.String)}.
*/
@Test
public void testCompareDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#GetDatePart(java.lang.String, int)}.
*/
@Test
public void testGetDatePart() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#isDateBefore(java.lang.String, java.lang.String)}.
*/
@Test
public void testIsDateBeforeStringString() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#isDateBefore(java.lang.String)}.
*/
@Test
public void testIsDateBeforeString() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#isDateBefore(java.util.Date)}.
*/
@Test
public void testIsDateBeforeDate() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#compare(java.util.Calendar, java.util.Calendar, int)}.
*/
@Test
public void testCompare() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#isLeapYear(java.lang.String)}.
*/
@Test
public void testIsLeapYear() {
fail("Not yet implemented");
}
/**
* Test method for {@link com.ycsoft.commons.helper.DateHelper#isToday(java.util.Date)}.
*/
@Test
public void testIsToday() {
fail("Not yet implemented");
}
}