@Before
	public void setUp() {
		calendarUsers = new CalendarUser[3];
		events = new Event[3];
		//기존 등록된 유저 삭제 
		this.calendarUserDao.deleteAll();
		
		//기존 등록된 이벤트 삭제 
		this.eventDao.deleteAll();
		
		//디폴트 유저 등록
		CalendarUser setupCreateUser1 = new CalendarUser("user1@example.com","user1","User1");
		CalendarUser setupCreateUser2 = new CalendarUser("admin1@example.com","admin1","Admin");
		CalendarUser setupCreateUser3 = new CalendarUser("user2@example.com","user2","User2");
		
		
		int setupCreatedUserId1 = calendarUserDao.createUser(setupCreateUser1);
		setupCreateUser1.setId(setupCreatedUserId1); calendarUsers[0] = setupCreateUser1; 
		int setupCreatedUserId2 = calendarUserDao.createUser(setupCreateUser2);
		setupCreateUser2.setId(setupCreatedUserId2); calendarUsers[1] = setupCreateUser2;
		int setupCreatedUserId3 = calendarUserDao.createUser(setupCreateUser3);
		setupCreateUser3.setId(setupCreatedUserId3); calendarUsers[2] = setupCreateUser3;

		//디폴트 이벤트 등록
		String event1Ts = "2013-10-04 20:30:00";		
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Calendar cal = Calendar.getInstance();
		try {
			cal.setTime(sdf.parse(event1Ts));
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}		
		
		Event setupCreateEvent1 = new Event(cal,"Birthday Party", "This is going to be a great birthday", 
				calendarUserDao.getUser(setupCreatedUserId1), calendarUserDao.getUser(setupCreatedUserId2));;
		eventDao.createEvent(setupCreateEvent1);
		events[0] = setupCreateEvent1;
		
		//2번째 이벤트 등록	
		String event2Ts = "2013-12-23 13:00:00";
		try {
			cal.setTime(sdf.parse(event2Ts));
		} catch (ParseException e) {
			e.printStackTrace();
		}
		
		Event setupCreateEvent2 = new Event(cal,"Conference Call","Call with the client",calendarUserDao.getUser(setupCreatedUserId3), 
				calendarUserDao.getUser(setupCreatedUserId1));// 3,1));
		eventDao.createEvent(setupCreateEvent2);
		events[1] = setupCreateEvent2;
		
		//3번째 event 등록
		String event3Ts = "2014-01-23 11:30:00";
		try {
			cal.setTime(sdf.parse(event3Ts));
		} catch (ParseException e) {
			e.printStackTrace();
		}
		Event setupCreateEvent3 = new Event(cal,"Lunch","Eating lunch together",calendarUserDao.getUser(setupCreatedUserId2),
				calendarUserDao.getUser(setupCreatedUserId3));
		eventDao.createEvent(setupCreateEvent3);
		events[2] = setupCreateEvent3;
		
		
		/*
		createEvent2.setWhen(Calendar.getInstance());
		createEvent2.setSummary("event2 - summary");
		createEvent2.setDescription("event2 - description");
		createEvent2.setOwner(calendarUserDao.getUser(3));
		createEvent2.setAttendee(calendarUserDao.getUser(1));		
		createEvent1Id = eventDao.createEvent(createEvent1);
		createEvent2Id = eventDao.createEvent(createEvent2);
		 */
		
		
		/* [참고]
		insert into calendar_users(`id`,`email`,`password`,`name`) values (1,'user1@example.com','user1','User1');
		insert into calendar_users(`id`,`email`,`password`,`name`) values (2,'admin1@example.com','admin1','Admin');
		insert into calendar_users(`id`,`email`,`password`,`name`) values (3,'user2@example.com','user2','User1');

		insert into events (`id`,`when`,`summary`,`description`,`owner`,`attendee`) values (100,'2013-10-04 20:30:00','Birthday Party','This is going to be a great birthday',1,2);
		insert into events (`id`,`when`,`summary`,`description`,`owner`,`attendee`) values (101,'2013-12-23 13:00:00','Conference Call','Call with the client',3,1);
		insert into events (`id`,`when`,`summary`,`description`,`owner`,`attendee`) values (102,'2014-01-23 11:30:00','Lunch','Eating lunch together',2,3);
		*/
		
		// 1. SQL 코드에 존재하는 3개의 CalendarUser와 Event 각각을 Fixture로서 인스턴스 변수 calendarUsers와 events에 등록하고 DB에도 저장한다. 
		// [주의 1] 모든 id 값은 입력하지 않고 DB에서 자동으로 생성되게 만든다. 
		// [주의 2] Calendar를 생성할 때에는 DB에서 자동으로 생성된 id 값을 받아 내어서 Events를 만들 때 owner와 attendee 값으로 활용한다.
		
	}