Subversion Repositories SmartDukaan

Rev

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

Rev 3024 Rev 3029
Line 13... Line 13...
13
 
13
 
14
import junit.framework.Assert;
14
import junit.framework.Assert;
15
 
15
 
16
import org.apache.thrift.TException;
16
import org.apache.thrift.TException;
17
import org.junit.Before;
17
import org.junit.Before;
-
 
18
import org.junit.Ignore;
18
import org.junit.Test;
19
import org.junit.Test;
19
import org.springframework.context.ApplicationContext;
20
import org.springframework.context.ApplicationContext;
20
import org.springframework.context.support.ClassPathXmlApplicationContext;
21
import org.springframework.context.support.ClassPathXmlApplicationContext;
21
 
22
 
22
/**
23
/**
Line 39... Line 40...
39
 
40
 
40
    /**
41
    /**
41
     * Test method for {@link in.shop2020.crm.handler.ActivityHandler#fetchActivities(long, in.shop2020.crm.ActivityStatus, long)}.
42
     * Test method for {@link in.shop2020.crm.handler.ActivityHandler#fetchActivities(long, in.shop2020.crm.ActivityStatus, long)}.
42
     * @throws TException 
43
     * @throws TException 
43
     */
44
     */
44
    @Test
45
    @Ignore
45
    public void testFetchActivities() throws TException {
46
    public void testFetchActivities() throws TException {
46
        List<Activity> activities = activityHandler.getActivities(1l);
47
        List<Activity> activities = activityHandler.getActivities(1l);
47
        Assert.assertTrue(activities.isEmpty());
48
        Assert.assertTrue(activities.isEmpty());
48
        activities = activityHandler.getActivities(null);
49
        activities = activityHandler.getActivities(null);
49
        Assert.assertTrue(!activities.isEmpty());
50
        Assert.assertTrue(!activities.isEmpty());
Line 51... Line 52...
51
 
52
 
52
    /**
53
    /**
53
     * Test method for {@link in.shop2020.crm.handler.ActivityHandler#insertActivity(in.shop2020.crm.domain.Activity)}.
54
     * Test method for {@link in.shop2020.crm.handler.ActivityHandler#insertActivity(in.shop2020.crm.domain.Activity)}.
54
     * @throws TException 
55
     * @throws TException 
55
     */
56
     */
56
    @Test
57
    @Ignore
57
    public void testInsertActivity() throws TException {
58
    public void testInsertActivity() throws TException {
58
        Activity activity = new Activity();
59
        Activity activity = new Activity();
59
        activity.setCustomerId(34l);
60
        activity.setCustomerId(34l);
60
        activity.setContactTimestamp(new Date());
61
        activity.setContactTimestamp(new Date());
61
        activity.setTicketPriority(TicketPriority.HIGH);
62
        activity.setTicketPriority(TicketPriority.HIGH);