@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 );
}
}