Skip to content

Commit

Permalink
Remove unused code, improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Chédru committed Mar 21, 2016
1 parent 6b6ce98 commit 1a78f35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
13 changes: 0 additions & 13 deletions src/main/java/org/dhatim/fastexcel/Writer.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,6 @@ Writer append(char c) throws IOException {
return this;
}

/**
* Append a boolean.
*
* @param b Boolean.
* @return This writer.
* @throws IOException If an I/O error occurs.
*/
Writer append(boolean b) throws IOException {
sb.append(b);
check();
return this;
}

/**
* Append an integer.
*
Expand Down
5 changes: 3 additions & 2 deletions src/test/java/org/dhatim/fastexcel/Correctness.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public void mergedRanges() throws Exception {
ws.value(0, 1, "Two");
ws.value(0, 2, "Three");
ws.value(1, 0, "Merged");
ws.range(1, 0, 1, 2).style().merge().set();
ws.range(1, 0, 1, 2).merge();
ws.style(1, 0).horizontalAlignment("center").set();
});
Expand All @@ -149,7 +150,7 @@ public void mergedRanges() throws Exception {
@Test
public void singleWorksheet() throws Exception {
String sheetName = "Worksheet 1";
String stringValue = "Sample text with chars to escape : < > & \\ \" ~ é è à ç ù µ £ €";
String stringValue = "Sample text with chars to escape : < > & \\ \" ' ~ é è à ç ù µ £ €";
Date dateValue = new Date();
LocalDateTime localDateTimeValue = LocalDateTime.now();
ZoneId timezone = ZoneId.of("Australia/Sydney");
Expand Down Expand Up @@ -239,7 +240,7 @@ public void multipleWorksheets() throws Exception {
ws.formula(numRows + 1, 4, "=AVERAGE(" + ws.range(1, 4, numRows, 4).toString() + ")");
ws.style(numRows + 1, 4).format("yyyy-MM-dd HH:mm:ss").set();
ws.formula(numRows + 1, 5, "=AVERAGE(" + ws.range(1, 5, numRows, 5).toString() + ")");
ws.style(numRows + 1, 5).format("yyyy-MM-dd").horizontalAlignment("center").verticalAlignment("top").wrapText(true).set();
ws.style(numRows + 1, 5).format("yyyy-MM-dd").bold().italic().fontColor(Color.RED).horizontalAlignment("center").verticalAlignment("top").wrapText(true).set();
ws.range(1, 0, numRows, numCols - 1).style().borderColor(Color.RED).borderStyle("thick").shadeAlternateRows(Color.RED).set();
});
cfs[i] = cf;
Expand Down

0 comments on commit 1a78f35

Please sign in to comment.