Package net.firstpartners.spreadsheet

Examples of net.firstpartners.spreadsheet.Range


 
  @Test
  public void testCellSearch() throws Exception {

    //Create the test object
    Range testRange = new Range();
   
    //Check that we can the name of the cell in the same range
    assertEquals("range_3",testRange.getCellName("range_12", 3));
   
    //Check a name that contains multiple underscores
    assertEquals("range_double_barrell_3",testRange.getCellName("range_double_barrell_12", 3));
   
  }
View Full Code Here


 
  @Test
  public void testRangeContains(){
   
    //Create the test object
    Range testRange = new Range();
   
    // add some test cells
    Cell testCellOne = new Cell();
    testCellOne.setValue("cellValue1");
   
    Cell testCellTwo = new Cell();
    testCellTwo.setValue("cellValue2");
   
    testRange.put("name1",testCellOne);
    testRange.put("name2",testCellTwo);
   
    assertTrue(testRange.getRangeContainsValue("cellValue1"));
    assertFalse(testRange.getRangeContainsValue("cellValue3")); // we don't add this , should not exist
   
   
  }
View Full Code Here

TOP

Related Classes of net.firstpartners.spreadsheet.Range

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.