Search in sources :

Example 1 with NullValue

use of uk.ac.ed.ph.jqtiplus.value.NullValue in project OpenOLAT by OpenOLAT.

the class AssessmentRenderFunctionsTest method valueContains_nullValue.

@Test
public void valueContains_nullValue() {
    NullValue nullVal = NullValue.INSTANCE;
    Assert.assertFalse(AssessmentRenderFunctions.valueContains(null, Identifier.parseString("noid")));
    Assert.assertFalse(AssessmentRenderFunctions.valueContains(nullVal, Identifier.parseString("noid")));
}
Also used : NullValue(uk.ac.ed.ph.jqtiplus.value.NullValue) Test(org.junit.Test)

Example 2 with NullValue

use of uk.ac.ed.ph.jqtiplus.value.NullValue in project openolat by klemens.

the class AssessmentRenderFunctionsTest method valueContains_nullValue.

@Test
public void valueContains_nullValue() {
    NullValue nullVal = NullValue.INSTANCE;
    Assert.assertFalse(AssessmentRenderFunctions.valueContains(null, Identifier.parseString("noid")));
    Assert.assertFalse(AssessmentRenderFunctions.valueContains(nullVal, Identifier.parseString("noid")));
}
Also used : NullValue(uk.ac.ed.ph.jqtiplus.value.NullValue) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 NullValue (uk.ac.ed.ph.jqtiplus.value.NullValue)2