Package se.gu.fire.core

Examples of se.gu.fire.core.Assignment


        this.finalDeadline = finalDeadline;
    }

    public void createAssignment() {

        Assignment assignment = new Assignment.Builder()
                .title(title)
                .information(information)
                .finalDeadline(finalDeadline)
                .firstDeadline(firstDeadline)
                .build();
View Full Code Here


        AssignmentManager am = new AssignmentManager();
        am.setEntityManager(em);
       
       
       
        Assignment assign = new Assignment.Builder()
                .title("Ratnum labb")
                .information("Programmera RatNum labben ordentligt annars kommer Christopher.")
                .finalDeadline(new Date(Calendar.getInstance().getTime().getTime()+15000))
                .firstDeadline(new Date(Calendar.getInstance().getTime().getTime()+10000))
                .build();
           
        em.getTransaction().begin();
        am.create(assign);
        em.getTransaction().commit();
       
        Assignment assign2 = am.read(assign.getId());
        assertEquals(assign, assign2);
    }
View Full Code Here

        CommentManager cm = new CommentManager();
        cm.setEntityManager(em);

        // Fix assignment
        Assignment assign = new Assignment.Builder()
                .title("Ratnum labb")
                .information("Programmera RatNum labben ordentligt annars kommer Christopher.")
                .finalDeadline(new Date(Calendar.getInstance().getTime().getTime()+15000))
                .firstDeadline(new Date(Calendar.getInstance().getTime().getTime()+10000))
                .build();
View Full Code Here

TOP

Related Classes of se.gu.fire.core.Assignment

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.