Skip to content

Commit

Permalink
Fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaldispuehl committed Dec 28, 2013
1 parent 53c8c3d commit ac5c39c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -122,7 +122,8 @@ String generateStringOfLength(int tokens) {
return on(tokenizer.getDelimiter()).join(result);
}

private boolean isChainEmpty() {
@VisibleForTesting
boolean isChainEmpty() {
return chain.isEmpty();
}

Expand Down
Expand Up @@ -87,6 +87,7 @@ public void shouldGenerateStringOfLength() {
builder.initializeBufferWithSize(1);
Token createdToken = createTokenWith("abc");
when(builder.extractNextToken()).thenReturn(createdToken);
when(builder.isChainEmpty()).thenReturn(false);

// when
builder.generateStringOfLength(1);
Expand Down

0 comments on commit ac5c39c

Please sign in to comment.