Permalink
Browse files

adding no data test

  • Loading branch information...
ropalka committed Aug 31, 2012
1 parent 08fafde commit 91e6b188f009591b7c5140e24b469691a12f7fe1
@@ -31,6 +31,13 @@
*/
public final class InvalidJsonReaderTestCase extends AbstractJsonTestCase {
+ @Test
+ public void noData() throws IOException {
+ final JsonReader reader = getJsonReader( "" );
+ assertJsonException( reader, "Unexpected EOF while reading JSON stream" );
+ reader.close();
+ }
+
@Test
public void emptyState() throws IOException {
read_colon();

0 comments on commit 91e6b18

Please sign in to comment.