Package org.apache.gora.persistency

Examples of org.apache.gora.persistency.ListGenericArray.compareTo()


  public void testCompareTo() {
    ListGenericArray array = new ListGenericArray(Schema.create(Schema.Type.STRING));
    boolean stackOverflowError = false;
    array.add(new Utf8("array comparison test"));
    try {
      int compareTo = array.compareTo(array);
    } catch (StackOverflowError e) {
      stackOverflowError = true;
    }
    Assert.assertFalse(stackOverflowError);
  }
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.