test/org/ohmage/validator/AuditValidatorsTest.java
@Test
	public void testValidateDeviceId() {
		try {
			for(String emptyValue : ParameterSets.getEmptyValues()) {
				Assert.assertNull(AuditValidators.validateDeviceId(emptyValue));
			}
			
			// Not sure what else to test here as a device ID can be about 
			// anything.
		}
		catch(ValidationException e) {
			fail("A validation exception was thrown: " + e.getMessage());
		}
	}
/**
	 * Tests the device ID validator.
	 */
Tests the device ID validator.
Tests the device ID validator .
@Test
	public void testValidateDeviceId() {
		try {
			for(String emptyValue : ParameterSets.getEmptyValues()) {
				Assert.assertNull(AuditValidators.validateDeviceId(emptyValue));
			}
		}
		catch(ValidationException e) {
			fail("A validation exception was thrown: " + e.getMessage());
		}
	}
@ Test public void testValidateDeviceId ( ) { try { for ( String emptyValue : ParameterSets . getEmptyValues ( ) ) { Assert . assertNull ( AuditValidators . validateDeviceId ( emptyValue ) ) ; } } catch ( ValidationException e ) { fail ( "A validation exception was thrown: " + e . getMessage ( ) ) ; } }
Tests the device ID validator.
Tests the device ID validator .
// Not sure what else to test here as a device ID can be about  // anything.