Skip to content

Commit

Permalink
fixing the broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesemery committed May 10, 2019
1 parent ef4a7bf commit bc0a7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* A simple helper class wrapper around CSVWriter that has the ingrained concept of a header line with indexed fields
*
* The expected use case for this class is that first {@link #addHeaderLine} is called with a list of the column names
* The expected use case for this class is that first {@link #setHeaderLine} is called with a list of the column names
* which will be used to determine the number of columns per line as well as how the header is indexed. Then in order to
* construct a new line call {@link #getNewLineBuilder} to get a line builder for each line, which then has convienent
* methods for individually assigning column values based on the header line etc. Once a line is finished being mutated
Expand Down Expand Up @@ -62,7 +62,7 @@ public SimpleCSVWriterWrapperWithHeader(final Writer writer, final char separato
*
* @param columns Ordered list of header lines to be built into the CSV
*/
public void addHeaderLine(List<String> columns) {
public void setHeaderLine(List<String> columns) {
if (headerMap != null) {
throw new GATKException("Should not be adding multiple header lines to a file");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import java.nio.file.Path;
import java.util.Arrays;

import static org.testng.Assert.*;

public class SimpleCSVWriterWrapperWithHeaderUnitTest extends GATKBaseTest {


Expand All @@ -25,6 +23,8 @@ public void testWriteToBucketPath() throws IOException {
SimpleCSVWriterWrapperWithHeader localWriter = new SimpleCSVWriterWrapperWithHeader(localPath, '\t');

String[] header = new String[]{"a","b","c"};
bucketWriter.setHeaderLine(Arrays.asList(header));
localWriter.setHeaderLine(Arrays.asList(header));

for (int i = 0; i < 100; i++) {
SimpleCSVWriterWrapperWithHeader.SimpleCSVWriterLineBuilder bucketLine = bucketWriter.getNewLineBuilder();
Expand Down

0 comments on commit bc0a7c3

Please sign in to comment.