Back to project page Butler.
The source code is released under:
Apache License
If you think the Android project Butler listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bingzer.android; /* w w w . ja v a2s . c om*/ import android.test.AndroidTestCase; import static com.bingzer.android.Email.validate; public class EmailTest extends AndroidTestCase { public void test_validate_ok(){ assertTrue(validate("ricky@test-case.com")); assertTrue(validate("ricky@123-case.com")); assertTrue(validate("ricky@123_underscore.net.com.org")); } public void test_validate_bad(){ assertFalse(validate("@test-case.com")); assertFalse(validate("123-case.com")); assertFalse(validate("ricky")); } }