Package models

Examples of models.Staff


        assertEquals(1l, Activity.count("from Activity a where a.member = ?", member));
    }

    @Test
    public void ticketingRegisteredStaff() {
        Staff staff = Staff.all().first();
        // Non activity for staff
        assertNull(Activity.find("select a from Activity a where a.member = ?", staff).first());

        staff.setTicketingRegistered(false);
        staff.save();
        // Still no activity for staff
        assertNull(Activity.find("select a from Activity a where a.member = ?", staff).first());

        staff.setTicketingRegistered(true);
        staff.save();
       
        // Still no activity for staf
        assertNull(Activity.find("select a from Activity a where a.member = ?", staff).first());
    }
View Full Code Here

TOP

Related Classes of models.Staff

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.