001    package org.hackystat.utilities.email;
002    
003    import static org.junit.Assert.assertFalse;
004    import static org.junit.Assert.assertTrue;
005    
006    import org.junit.Test;
007    
008    /**
009     * Tests the ValidateEmailSyntax class. 
010     * 
011     * @author Philip Johnson
012     */
013    
014    public class TestValidateEmailSyntax {
015    
016      /**
017       * Tests the hackystat user home definition facility.
018       * 
019       */
020      @Test
021      public void testEmail() {
022        assertTrue("Testing valid email", ValidateEmailSyntax.isValid("johnson@hawaii.edu"));
023        assertFalse("Testing invalid email", ValidateEmailSyntax.isValid("foo"));
024      }
025    }