Subversion Repositories SmartDukaan

Rev

Rev 3029 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3029 Rev 3269
Line 10... Line 10...
10
import java.util.List;
10
import java.util.List;
11
 
11
 
12
import org.apache.thrift.TException;
12
import org.apache.thrift.TException;
13
import org.junit.Before;
13
import org.junit.Before;
14
import org.junit.Ignore;
14
import org.junit.Ignore;
15
import org.junit.Test;
-
 
16
import org.springframework.beans.factory.annotation.Autowired;
15
import org.springframework.beans.factory.annotation.Autowired;
17
import org.springframework.context.ApplicationContext;
16
import org.springframework.context.ApplicationContext;
18
import org.springframework.context.support.ClassPathXmlApplicationContext;
17
import org.springframework.context.support.ClassPathXmlApplicationContext;
19
 
18
 
20
/**
19
/**
Line 67... Line 66...
67
     * @throws TException 
66
     * @throws TException 
68
     */
67
     */
69
    @Ignore
68
    @Ignore
70
    public void testInsertTicket() throws TException {
69
    public void testInsertTicket() throws TException {
71
        Ticket ticket = new Ticket();
70
        Ticket ticket = new Ticket();
72
        ticket.setCustomerId(0);
71
        ticket.setCustomerId(0l);
73
        ticket.setCloseDate(new Date());
72
        ticket.setCloseDate(new Date());
74
        ticket.setOpenDate(new Date());
73
        ticket.setOpenDate(new Date());
75
        ticketHandler.insertTicket(ticket);
74
        ticketHandler.insertTicket(ticket);
76
        
75
        
77
        assertEquals(true, ticket.getId() > 10);
76
        assertEquals(true, ticket.getId() > 10);