Border { public void setWidth(double width) { this.width = width; } protected  Border(); private  Border(StyleTypeDefinitions.LineType lineType);  Border(Color aColor, double width, StyleTypeDefinitions.SupportedLinearMeasure linearMeasure);  Border(Color aColor, double width, double innerLineWidth, double outerLineWidth,
			StyleTypeDefinitions.SupportedLinearMeasure linearMeasure); StyleTypeDefinitions.LineType getLineStyle(); void setLineStyle(StyleTypeDefinitions.LineType lineStyle); Color getColor(); void setColor(Color color); double getWidth(); void setWidth(double width); double getInnerLineWidth(); void setInnerLineWidth(double innerWidth); double getDistance(); void setDistance(double distance); double getOuterLineWidth(); void setOuterLineWidth(double lineWidth); @Override String toString(); @Override boolean equals(Object o); StyleTypeDefinitions.SupportedLinearMeasure getLinearMeasure(); void setLinearMeasure(StyleTypeDefinitions.SupportedLinearMeasure linearMeasure); static Border NONE; }
@Test public void testSetWidth() { Border borderbase = new Border(new Color("#00ccff"), 0.0701, 0.0008, 0.0346, SupportedLinearMeasure.IN); try { SpreadsheetDocument doc = SpreadsheetDocument.loadDocument(ResourceUtilities .getTestResourceAsStream(filename)); Table table = doc.getTableByName("A"); borderbase.setWidth(0.056); Cell cell = table.getCellByPosition("A14"); cell.setBorders(CellBordersType.LEFT, borderbase); cell.setBorders(CellBordersType.TOP, borderbase); Border thisBorder = cell.getBorder(CellBordersType.LEFT); thisBorder = cell.getBorder(CellBordersType.TOP); Assert.assertEquals(0.056, thisBorder.getWidth()); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } }