Skip to content

Commit

Permalink
Started a test for FileUtils
Browse files Browse the repository at this point in the history
Created a test for the getStringFromReader method, seeing there was an issue with that specific code before.
  • Loading branch information
Joe0 committed May 30, 2013
1 parent d0aded8 commit 8086856
Showing 1 changed file with 18 additions and 0 deletions.
@@ -0,0 +1,18 @@
package com.jamierf.persistenthashmap.util;

import static org.junit.Assert.*;

import java.io.IOException;
import java.io.StringReader;

import org.junit.Test;

public class TestFileUtils {

@Test
public void testGetStringFromReader() throws IOException {
String string = "Testing this.";
assertTrue(FileUtils.getStringFromReader(new StringReader(string)).equals(string));
}

}

0 comments on commit 8086856

Please sign in to comment.