Package cz.zcu.fav.kiv.mjakubas.saf
Class EntitiesTestLoaderTest
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.EntitiesTestLoaderTest
Defines a test loader for tests resource entities files in json format.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Absence[]
static Building[]
static SchoolClass[]
static Evaluation[]
static Room[]
static ScheduleActionDate[]
static ScheduleAction[]
static SchoolDay[]
static SchoolHour[]
static Student[]
static Subject[]
static SubjectList[]
static Teacher[]
protected void
protected void
protected void
static Object[]
loadTestEntities
(@NotNull String resourceName, @NotNull Class<?> entityClass) Returns all loaded entities from defined json resource file.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
-
Field Details
-
ABSENCES_FILE_NAME
- See Also:
-
BUILDINGS_FILE_NAME
- See Also:
-
CLASSES_FILE_NAME
- See Also:
-
EVALUATIONS_FILE_NAME
- See Also:
-
ROOMS_FILE_NAME
- See Also:
-
SCHEDULE_ACTIONS_FILE_NAME
- See Also:
-
SCHEDULE_ACTIONS_DATES_FILE_NAME
- See Also:
-
SCHOOL_DAYS_FILE_NAME
- See Also:
-
SCHOOL_HOURS_FILE_NAME
- See Also:
-
STUDENTS_FILE_NAME
- See Also:
-
SUBJECTS_LISTS_FILE_NAME
- See Also:
-
SUBJECTS_FILE_NAME
- See Also:
-
TEACHERS_FILE_NAME
- See Also:
-
-
Constructor Details
-
EntitiesTestLoaderTest
public EntitiesTestLoaderTest()
-
-
Method Details
-
loadTestEntities
public static Object[] loadTestEntities(@NotNull @NotNull String resourceName, @NotNull @NotNull Class<?> entityClass) throws Exception Returns all loaded entities from defined json resource file.- Parameters:
resourceName
- resource nameentityClass
- entity class- Returns:
- all loaded entities
- Throws:
Exception
- if any error happens
-
loadAbsences
- Throws:
Exception
-
loadBuildings
- Throws:
Exception
-
loadClasses
- Throws:
Exception
-
loadEvaluations
- Throws:
Exception
-
loadRooms
- Throws:
Exception
-
loadScheduleActions
- Throws:
Exception
-
loadScheduleActionDates
- Throws:
Exception
-
loadSchoolDays
- Throws:
Exception
-
loadSchoolHours
- Throws:
Exception
-
loadStudents
- Throws:
Exception
-
loadSubjects
- Throws:
Exception
-
loadSubjectsLists
- Throws:
Exception
-
loadTeachers
- Throws:
Exception
-
loadTestAbsences
- Throws:
Exception
-
loadTestBuildings
- Throws:
Exception
-
loadTestClasses
- Throws:
Exception
-
loadTestEvaluations
- Throws:
Exception
-
loadTestRooms
- Throws:
Exception
-
loadTestScheduleActionsDates
- Throws:
Exception
-
loadTestScheduleActions
- Throws:
Exception
-
loadTestSchoolDays
- Throws:
Exception
-
loadTestSchoolHours
- Throws:
Exception
-
loadTestStudents
- Throws:
Exception
-
loadTestSubjects
- Throws:
Exception
-
loadTestSubjectsLists
- Throws:
Exception
-
loadTestTeachers
- Throws:
Exception
-