Examples of UICategory


Examples of org.jboss.forge.addon.ui.metadata.UICategory

public class CategoriesTest
{
   @Test
   public void testNullArgs()
   {
      UICategory category = Categories.create();
      Assert.assertNotNull(category);
      Assert.assertEquals(Categories.createDefault().getName(), category.getName());
      Assert.assertNull(category.getSubCategory());
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.UICategory

   }

   @Test
   public void testSingleCategory()
   {
      UICategory category = Categories.create("ONE");
      Assert.assertNotNull(category);
      Assert.assertEquals("ONE", category.getName());
      Assert.assertNull(category.getSubCategory());
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.metadata.UICategory

   }

   @Test
   public void testMultipleCategory()
   {
      UICategory category = Categories.create("ONE", "TWO", "THREE");
      Assert.assertNotNull(category);
      Assert.assertEquals("ONE", category.getName());
      Assert.assertNotNull(category.getSubCategory());
      Assert.assertEquals("TWO", category.getSubCategory().getName());
      Assert.assertNotNull(category.getSubCategory().getSubCategory());
      Assert.assertEquals("THREE", category.getSubCategory().getSubCategory().getName());
      Assert.assertNull(category.getSubCategory().getSubCategory().getSubCategory());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.