package com.msolo.stockeye.calendarstock;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/**
* Tests for UtilCalTime
*
* @author yuezhi.msolo@outlook.com (kevin mSolo)
*/
public class UtilCalTimeTest {
private UtilCalTime utilCalTime = UtilCalTime.getInstance();
@Test
public void testAssertClassSingleton() {
UtilCalTime utilCalTimeAnother = UtilCalTime.getInstance();
assertSame("should be same", utilCalTime, utilCalTimeAnother);
}
@Test
public void testGetIntCal() {
int intCal = utilCalTime.getIntCal(new GregorianCalendar());
int intCalTest = 20141108;
testAssertEquals("should be equal", intCal, intCalTest);
}
}