Package org.bitbucket.andyrobr.clever.models

Examples of org.bitbucket.andyrobr.clever.models.District


        List<District> districts = clever.getDistricts();

        assertNotNull(districts);
        assertTrue(districts.size() == 1);

        District a = districts.get(0);

        assertNotNull(a);

        District b = clever.getDistrict(a.getId());

        assertNotNull(b);
        assertEquals(a, b);
    }
View Full Code Here


        assertNotNull(schools);
        assertTrue(schools.size() == 1);

        List<District> districts = clever.getDistricts();
        District district = districts.get(0);

        List<School> schoolsInDistrict = clever.getSchoolsFromDistrict(district.getId());

        assertNotNull(schoolsInDistrict);
        assertTrue(schoolsInDistrict.size() == 1);

        assertEquals(schoolsInDistrict.get(0), schools.get(0));
View Full Code Here

    }

    @Test
    public void testGetTeachersFromDistrict() throws Exception
    {
        District district = clever.getDistricts().get(0);

        List<Teacher> teachers = clever.getTeachersFromDistrict(district.getId());

        assertNotNull(teachers);
        assertTrue(teachers.size() == 1);

        District teacherDistrict = clever.getDistrictFromTeacher(teachers.get(0).getId());

        assertEquals(district, teacherDistrict);
    }
View Full Code Here

        assertNotNull(teachers);
        assertTrue(teachers.size() == 1);

        List<District> districts = clever.getDistricts();
        District district = districts.get(0);

        List<Teacher> teachersInDistrict = clever.getTeachersFromDistrict(district.getId());

        assertNotNull(teachersInDistrict);
        assertTrue(teachersInDistrict.size() == 1);

        assertEquals(teachersInDistrict.get(0), teachers.get(0));
View Full Code Here

    }

    @Test
    public void testGetStudentsFromDistrict() throws Exception
    {
        District district = clever.getDistricts().get(0);

        List<Student> students = clever.getStudentsFromDistrict(district.getId());

        assertNotNull(students);
        assertTrue(students.size() == 1);

        District studentDistrict = clever.getDistrictFromStudent(students.get(0).getId());

        // If a district includes a student, then the student must be in the district.
        assertEquals(studentDistrict, district);
    }
View Full Code Here

        List<Student> students = clever.getStudents();

        assertNotNull(students);
        assertTrue(students.size() == 1);

        District district = clever.getDistricts().get(0);

        List<Student> studentsInDistrict = clever.getStudentsFromDistrict(district.getId());

        assertNotNull(studentsInDistrict);
        assertTrue(studentsInDistrict.size() == 1);

        assertEquals(studentsInDistrict.get(0), students.get(0));
View Full Code Here

TOP

Related Classes of org.bitbucket.andyrobr.clever.models.District

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.