Update AsalAnggaranDaoTest.java
Clean code
This commit is contained in:
parent
28bc9e7a19
commit
43c4a40c83
@ -3,53 +3,16 @@ package com.jasamedika.medifirst2000.dao.test;
|
||||
/**Agama Class Test
|
||||
*/
|
||||
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import com.jasamedika.medifirst2000.dao.AsalAnggaranDao;
|
||||
import com.jasamedika.medifirst2000.entities.AsalAnggaran;
|
||||
import com.jasamedika.medifirst2000.util.DateUtil;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration("classpath*:com/jasamedika/**/applicationContext.xml")
|
||||
public class AsalAnggaranDaoTest {
|
||||
|
||||
/*@Autowired
|
||||
private AsalAnggaranDao dao;
|
||||
|
||||
@Test
|
||||
public void testFindById() {
|
||||
AsalAnggaran result = dao.findOne(1);
|
||||
assertNull(result);
|
||||
}
|
||||
*/
|
||||
|
||||
public static void main(String[]args) throws ParseException{
|
||||
|
||||
/*String[] dayNameArray = {"Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu", "Minggu"};
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
String dayName = dayNameArray[DateUtil.now().getDay()-1];
|
||||
String dateNumber = String.valueOf(DateUtil.now().getDate());
|
||||
String dateFullFormat = format.format(DateUtil.now().getTime());
|
||||
|
||||
String time = new SimpleDateFormat("HH:mm").format(Calendar.getInstance().getTime());
|
||||
|
||||
SimpleDateFormat format = new SimpleDateFormat("HH:mm");
|
||||
Date date1 = format.parse(time);
|
||||
Date date2 = format.parse("12:00");
|
||||
Long timeNow = date1.getTime();
|
||||
Long timeEnd = date2.getTime();*/
|
||||
public void contextLoad() {
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user