Package org.spw.model

Examples of org.spw.model.Partnership


        System.out.println("parse");
       
        String partnership = "[" + Long.toString(TEST_ID_ABC1) + "]" ;
        PartnershipController instance = new PartnershipController();
       
        Partnership expResult = instance.read(TEST_ID_ABC1);
        Partnership result = instance.parse(partnership);
        assertEquals("Couldn't parse " + partnership, expResult, result);
       
        partnership = null;
        assertNull(instance.parse(partnership));
       
View Full Code Here


     * Test of removeAdvertisement method, of class org.spw.controller.PartnershipController.
     */
    public void testRemoveAdvertisement() {
        System.out.println("removeAdvertisement");
       
        Partnership partnership = partnershipCtl.read(TEST_ID_ABC1);
        Advertisement advertisement = new Advertisement();
        advertisement.setDateAdvert(new Date());
        advertisement.setIdAdvertisement(TEST_ID_ABC1);
        advertisement.setNotes(getName());
       
        Partnership result = partnershipCtl.addAdvertisement(partnership, advertisement);
       
        result = partnershipCtl.removeAdvertisement(partnership, advertisement);
        assertFalse(result.getAdvertisements().contains(advertisement));
       
        AdvertisementController advCtrl = new AdvertisementController();
        assertNull(advCtrl.read(TEST_ID_ABC1));
    }
View Full Code Here

        Contact contact1 = new Volunteer();
        String sMailTo = prop.getProperty( "mail.to");
        contact1.setEmail( sMailTo);
        contact1.setFirstName("Patrice");
        contact1.setIdContact(1L);
        Contact contact2 = new Partnership();
        contact2.setEmail( "Pablo@localhost" );
        contact2.setFirstName("Pablo");
        contact2.setIdContact(2L);
        set.add(contact1);
        set.add(contact2);
        EMailer instance = new EMailer();
        instance.setSendCopy(true);
        instance.setContent(" Dear $firstName");
View Full Code Here

TOP

Related Classes of org.spw.model.Partnership

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.