1.0.0-SNAPSHOT
This commit is contained in:
parent
1048766d43
commit
0257b70c51
|
@ -3,13 +3,15 @@ package com.loafle.overflow.email.dao;
|
|||
import com.loafle.overflow.email.model.EmailAuth;
|
||||
import com.loafle.overflow.member.model.Member;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by root on 17. 6. 6.
|
||||
*/
|
||||
@Ignore
|
||||
public class JPAEmailAuthDAOTest {
|
||||
|
||||
private JPAEmailAuthDAO emailAuthDAO = null;
|
||||
|
@ -25,9 +27,11 @@ public class JPAEmailAuthDAOTest {
|
|||
EmailAuth auth = new EmailAuth();
|
||||
|
||||
auth.setAuthToken("loafle.com/Auth");
|
||||
auth.setMember(new Member((long)1));
|
||||
auth.setMember(new Member(Long.valueOf(1)));
|
||||
auth.setInvalid(false);
|
||||
auth.setUpdateDate(new Date());
|
||||
|
||||
this.emailAuthDAO.create(auth);
|
||||
EmailAuth ret = emailAuthDAO.create(auth);
|
||||
System.out.println(ret.getId());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user