package ru.apetrov;

import static org.junit.Assert.*;

import org.junit.Test;

import java.io.*;

/**
 * Created by Andrey on 05.11.2016.
 */
public class CheckByteStreamTest {

    CheckByteStream cbs = new CheckByteStream();
    boolean result = false;

    @Test
    public void test1(){
        try(InputStream inputStream = new ByteArrayInputStream("4".getBytes())){
            result = cbs.isNumber(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
        }
        assertTrue(result);
    }

    @Test
    public void test2(){
        try(InputStream inputStream = new ByteArrayInputStream("3".getBytes())) {
            result = cbs.isNumber(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
        }
        assertFalse(result);
    }
}

@@ -49,16 +49,66 @@
 ert.*;%0A%0A
+import org.junit.Before;%0Aimport org.junit.Ignore;%0A
 import o
@@ -122,16 +122,16 @@
 t.Test;%0A
-
 %0Aimport 
@@ -186,16 +186,26 @@
 16.%0A */%0A
+//@Ignore%0A
 public c
@@ -340,13 +340,42 @@
 oid 
-test1
+whenInputEvenNumberThenCheckNumber
 ()%7B%0A
@@ -645,13 +645,41 @@
 oid 
-test2
+whenInputOddNumberThenCheckNumber
 ()%7B%0A

Update CheckByteStream