Package org.soybeanMilk.web.vp

Examples of org.soybeanMilk.web.vp.PathNode


  @Test
  public void createNotVariable()
  {
    {
      String s="abc";
      PathNode pn=new PathNode(s);
     
      Assert.assertTrue( !pn.isVariable() );
      Assert.assertEquals(s, pn.getNodeValue());
    }
   
    {
      String s="{abc";
      PathNode pn=new PathNode(s);
     
      Assert.assertTrue( !pn.isVariable() );
      Assert.assertEquals(s, pn.getNodeValue());
    }
   
    {
      String s="abc}";
      PathNode pn=new PathNode(s);
     
      Assert.assertTrue( !pn.isVariable() );
      Assert.assertEquals(s, pn.getNodeValue());
    }
  }
View Full Code Here


  @Test
  public void createIsVariable()
  {
    {
      String s="{abc}";
      PathNode pn=new PathNode(s);
     
      Assert.assertTrue( pn.isVariable() );
      Assert.assertEquals("abc", pn.getNodeValue());
    }
   
    {
      String s="{}";
      PathNode pn=new PathNode(s);
     
      Assert.assertTrue( pn.isVariable() );
      Assert.assertEquals("", pn.getNodeValue());
    }
  }
View Full Code Here

 
  @Test
  public void compareTo()
  {
    {
      PathNode pn0=new PathNode("abc");
      PathNode pn1=new PathNode("{def}");
     
      Assert.assertTrue( pn0.compareTo(pn1)>0 );
    }
   
    {
      PathNode pn0=new PathNode("{abc}");
      PathNode pn1=new PathNode("{def}");
     
      Assert.assertTrue( pn0.compareTo(pn1)==0 );
    }
   
    {
      PathNode pn0=new PathNode("{abc}");
      PathNode pn1=new PathNode("{}");
     
      Assert.assertTrue( pn0.compareTo(pn1)==0 );
    }
   
    {
      PathNode pn0=new PathNode("{abc}");
      PathNode pn1=new PathNode("def");
     
      Assert.assertTrue( pn0.compareTo(pn1)<0 );
    }
  }
View Full Code Here

TOP

Related Classes of org.soybeanMilk.web.vp.PathNode

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.