Package org.spw.model

Examples of org.spw.model.Communication


        List<Communication> result = instance.getList();
        assertFalse("The list must not be empty",
                result.isEmpty());
        assertFalse("The list must contain only one item",
                result.size() > 1);
        Communication retrievedCom = result.get(0);
        assertEquals(completedWithContact, retrievedCom);
        List<Contact> participants = retrievedCom.getParticipants();
        assertEquals("The list of participants must have one contact",
                1, participants.size());
        assertEquals("The list of participants must contain only the created contact",
                contact, participants.get(0));
    }
View Full Code Here


        }
    }
   
    private void historize(Contact contact) {
        CommunicationController comCtl = new CommunicationController();
        Communication com = new Communication();
        com.setDateCommunication(new Date());
        com.setMedia("Email");
        com.setTopic(this.getSubject());
        List<Contact> participants = new ArrayList<Contact>(1);
        participants.add(contact);
        com.setParticipants(participants);
        comCtl.create(com);
    }
View Full Code Here

TOP

Related Classes of org.spw.model.Communication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.