Package org.cipres.treebase.RangeExpression

Examples of org.cipres.treebase.RangeExpression.Bounds


    assertThrowsMalformedRangeException("foo .. bar");
  }
 
  private void assertBoundsOK(String s, Integer low, Integer high) throws RangeExpression.MalformedRangeExpression {
    RangeExpression re = new RangeExpression();
    Bounds b = re.new Bounds(s);
   
    if (low == null) {
      assertFalse(b.hasLow());
    } else {
      assertTrue(b.hasLow());
      assertEquals(low, b.getLow());
    }   
   
    if (high == null) {
      assertFalse(b.hasHigh());
    } else {
      assertTrue(b.hasHigh());
      assertEquals(high, b.getHigh());
    }
  }
View Full Code Here

TOP

Related Classes of org.cipres.treebase.RangeExpression.Bounds

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.