package ru.apetrov;

import org.junit.Test;
import ru.apetrov.Palindrom.Palindrom;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
 * Created by Andrey on 22.11.2016.
 */
public class PalindromTest {

    /**
     * Тест на метод isPalindrom.
     * @throws IOException IOExeption
     */
    @Test
    public void whenInputWordThenCheckIsPolindrom() throws IOException {
        Palindrom palindrom = new Palindrom();
        InputStream inputStream = new ByteArrayInputStream("КоМок".getBytes());
        boolean result = true;
        assertThat(palindrom.isPalindrom(inputStream), is(result));
    }
}

@@ -481,27 +481,8 @@
 om()
- throws IOException
  %7B%0A 
@@ -535,16 +535,52 @@
         
+boolean result = true;%0A%0A        try(
 InputStr
@@ -646,40 +646,16 @@
 ());
+) %7B
 %0A    
-    boolean result = true;%0A
     
@@ -718,16 +718,93 @@
 sult));%0A
+        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A
     %7D%0A%7D%0A

update palindromtest (try resources)