test/org/ohmage/validator/SurveyResponseValidatorsTest.java
@Test
	public void testValidateSurveyIds() {
		try {
			for(String emptyValue : ParameterSets.getEmptyValues()) {
				Assert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));
			}
			
			for(String simpleValidList : ParameterSets.getSimpleValidLists()) {
				try {
					SurveyResponseValidators.validateSurveyIds(simpleValidList);
				}
				catch(ValidationException e) {
					fail("A valid list failed validation.");
				}
			}
		}
		catch(ValidationException e) {
			fail("A validation exception was thrown: " + e.getMessage());
		}
	}
/**
	 * Tests the survey ID validator.
	 */
Tests the survey ID validator.
Tests the survey ID validator .
@Test
	public void testValidateSurveyIds() {
		try {
			for(String emptyValue : ParameterSets.getEmptyValues()) {
				Assert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));
			}
			for(String simpleValidList : ParameterSets.getSimpleValidLists()) {
				try {
					SurveyResponseValidators.validateSurveyIds(simpleValidList);
				}
				catch(ValidationException e) {
					fail("A valid list failed validation.");
				}
			}
		}
		catch(ValidationException e) {
			fail("A validation exception was thrown: " + e.getMessage());
		}
	}
@ Test public void testValidateSurveyIds ( ) { try { for ( String emptyValue : ParameterSets . getEmptyValues ( ) ) { Assert . assertNull ( SurveyResponseValidators . validateSurveyIds ( emptyValue ) ) ; } for ( String simpleValidList : ParameterSets . getSimpleValidLists ( ) ) { try { SurveyResponseValidators . validateSurveyIds ( simpleValidList ) ; } catch ( ValidationException e ) { fail ( "A valid list failed validation." ) ; } } } catch ( ValidationException e ) { fail ( "A validation exception was thrown: " + e . getMessage ( ) ) ; } }
Tests the survey ID validator.
Tests the survey ID validator .