/** Test data domain condition */ @Test public void testCondition() { Config panel = configMap.get("panel"); Assert.assertTrue( "Must be true for a student with gender = 'male'", customizationAssemblyFactory.checkCondition(panel, panel, simpleMaleStudentEntity)); Assert.assertFalse( "Must be true for a student with gender = 'male'", customizationAssemblyFactory.checkCondition(panel, panel, simpleFemaleStudentEntity)); Assert.assertFalse( "Must be false for a student with no gender field available", customizationAssemblyFactory.checkCondition(panel, panel, simpleNoGenderInfoStudentEntity)); panel = configMap.get("panel1"); Assert.assertTrue( "Must be true for a student with gradeNumeric = 5", customizationAssemblyFactory.checkCondition(panel, panel, simpleMaleStudentEntity)); Assert.assertFalse( "Must be false for a student with gradeNumeric = 7", customizationAssemblyFactory.checkCondition(panel, panel, simpleFemaleStudentEntity)); }