Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.guvnor.client.packages;
 
 
 public class NewPackageWizardTest extends TestCase {
 
 	public void testPackageNameValidation() {
 		assertTrue(PackageNameValidator.validatePackageName("foo.bar"));
 		assertTrue(PackageNameValidator.validatePackageName("whee.waa2"));
		assertFalse(PackageNameValidator.validatePackageName(" hey DJ "));
		assertFalse(PackageNameValidator.validatePackageName(""));
		assertFalse(PackageNameValidator.validatePackageName(" "));
		assertFalse(PackageNameValidator.validatePackageName(null));
	}
New to GrepCode? Check out our FAQ X