Package org.exoplatform.container.PortalContainer

Examples of org.exoplatform.container.PortalContainer.WebAppInitContextComparator


public class TestWebAppInitContextComparator extends TestCase
{

   public void testCompare()
   {
      WebAppInitContextComparator comparator = new WebAppInitContextComparator(Arrays.asList("d", "c"));
      WebAppInitContext[] contexts =
         {createWebAppInitContext("b"), createWebAppInitContext("d"), createWebAppInitContext("a"),
            createWebAppInitContext("c")};
      Arrays.sort(contexts, comparator);
      assertEquals("d", contexts[0].getServletContextName());
View Full Code Here


public class TestWebAppInitContextComparator extends TestCase
{

   public void testCompare()
   {
      WebAppInitContextComparator comparator = new WebAppInitContextComparator(Arrays.asList("d", "c"));
      WebAppInitContext[] contexts =
         {createWebAppInitContext("b"), createWebAppInitContext("d"), createWebAppInitContext("a"),
            createWebAppInitContext("c")};
      Arrays.sort(contexts, comparator);
      assertEquals("d", contexts[0].getServletContextName());
View Full Code Here

TOP

Related Classes of org.exoplatform.container.PortalContainer.WebAppInitContextComparator

Copyright © 2018 www.massapicom. 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.