Intellij JUnit Console - I can't insert text

Hello:
I have been an Eclipse user for a long time and I am doing some tests but I have found an issue with one, I can't insert text in the console of the Run, It's like I am not allowed. Then I can't pass that test. I have done a simpler test

  @Test
    public void testHello(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {

            String name = br.readLine();
            String sentence = "Hello "+name;
            Assert.assertEquals(sentence,"Hello World");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

Thanks

1 comment
Comment actions Permalink

Hi,
that's currently not possible as normally tests should provide automatic testing. Why do you need such tests? Could you pass the data e.g. through vm params?
Thanks

0

Please sign in to leave a comment.