Package com.darkhonor.rage.model

Examples of com.darkhonor.rage.model.Instructor


    {
        System.out.println("create");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section("T1A");
        section.setCourse(course);
        section.setId(5L);
        section.setInstructor(instructor);
View Full Code Here


    {
        System.out.println("createExistingSection");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = new Instructor("David", "Roberts",
                "David.Roberts");
        instructor.setId(5L);
        instructor.setDomainAccount("David.Roberts");

        Section section = new Section("T5A");
        section.setCourse(course);
        section.setId(3L);
        section.setInstructor(instructor);
View Full Code Here

    @Test(expected=NullPointerException.class)
    public void testCreateNullCourse()
    {
        System.out.println("createNullCourse");
        Course course = null;
        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section("T1A");
        //System.out.println("- Setting Course");
        section.setId(5L);
        section.setInstructor(instructor);
View Full Code Here

    {
        System.out.println("createNullInstructor");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = null;

        Section section = new Section("T1A");
        section.setCourse(course);
        section.setId(5L);
        //System.out.println("- Setting Instructor");
View Full Code Here

    {
        System.out.println("createNullName");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section();
        section.setCourse(course);
        section.setId(5L);
        section.setInstructor(instructor);
View Full Code Here

    {
        System.out.println("createClosedConnection");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section("T1A");
        section.setCourse(course);
        section.setId(5L);
        section.setInstructor(instructor);
View Full Code Here

    @Test(expected=NullPointerException.class)
    public void testUpdateNullCourse()
    {
        System.out.println("updateNullCourse");

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section("T6A");
        section.setId(4L);
        section.setInstructor(instructor);
View Full Code Here

    {
        System.out.println("updateNullName");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section();
        section.setId(4L);
        section.setCourse(course);
        section.setInstructor(instructor);
View Full Code Here

    {
        System.out.println("updateEntityNotExist");
        Course course = new Course("CS364");
        course.setId(2L);

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section("T1A");
        section.setCourse(course);
        section.setId(5L);
        section.setInstructor(instructor);
View Full Code Here

    @Test(expected=NullPointerException.class)
    public void testDeleteNullCourse()
    {
        System.out.println("deleteNullCourse");

        Instructor instructor = new Instructor("Sarah", "O'Reilly",
                "Sarah.OReilly");
        instructor.setId(6L);
        instructor.setDomainAccount("Sarah.OReilly");

        Section section = new Section("T6A");
        section.setId(4L);
        section.setInstructor(instructor);
View Full Code Here

TOP

Related Classes of com.darkhonor.rage.model.Instructor

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.