@Test
public void testAllCondition() throws Exception {

	DDMForm ddmForm = new DDMForm();
	DDMFormField ddmFormField0 = createDDMFormField(
		"field0", "text", FieldConstants.STRING);
	DDMFormField ddmFormField1 = createDDMFormField(
		"field1", "number", FieldConstants.DOUBLE);
	ddmFormField1.setRepeatable(true);
	ddmForm.addDDMFormField(ddmFormField0);
	ddmForm.addDDMFormField(ddmFormField1);
	ddmForm.addDDMFormRule(
		new DDMFormRule(
			Arrays.asList("setEnabled(\"field0\", false)"),
			"all('#value# <= 10', getValue('field1'))"));
	DDMFormValues ddmFormValues = DDMFormValuesTestUtil.createDDMFormValues(
		ddmForm);
	ddmFormValues.addDDMFormFieldValue(
		DDMFormValuesTestUtil.createDDMFormFieldValue(
			"field0_instanceId", "field0", new UnlocalizedValue("")));
	ddmFormValues.addDDMFormFieldValue(
		DDMFormValuesTestUtil.createDDMFormFieldValue(
			"field1_0", "field1", new UnlocalizedValue("1")));
	ddmFormValues.addDDMFormFieldValue(
		DDMFormValuesTestUtil.createDDMFormFieldValue(
			"field1_1", "field1", new UnlocalizedValue("5")));
	ddmFormValues.addDDMFormFieldValue(
		DDMFormValuesTestUtil.createDDMFormFieldValue(
			"field1_2", "field1", new UnlocalizedValue("10")));
	DDMFormEvaluatorEvaluateResponse ddmFormEvaluatorEvaluateResponse =
		doEvaluate(ddmForm, ddmFormValues);
	Map<DDMFormEvaluatorFieldContextKey, Map<String, Object>>
		ddmFormFieldsPropertyChanges =
			ddmFormEvaluatorEvaluateResponse.
				getDDMFormFieldsPropertyChanges();
	Assert.assertEquals(
		ddmFormFieldsPropertyChanges.toString(), 1,
		ddmFormFieldsPropertyChanges.size());
	Map<String, Object> ddmFormFieldPropertyChanges =
		ddmFormFieldsPropertyChanges.get(
			new DDMFormEvaluatorFieldContextKey(
				"field0", "field0_instanceId"));
	Assert.assertTrue((boolean)ddmFormFieldPropertyChanges.get("readOnly"));
}