package com.github.rholder.esthree;

import com.github.rholder.esthree.cli.EsthreeCommand;
import org.junit.Assert;

public class TestUtils {

    public static void expectParseException(EsthreeCommand command, String exceptionMessage) {
        try {
            command.parse();
            Assert.fail("Expected Exception");
        } catch(Exception e) {
            Assert.assertTrue(e.getMessage().contains(exceptionMessage));
        }
    }
}

@@ -336,16 +336,17 @@
  %7D catch
+ 
 (Excepti
@@ -383,16 +383,178 @@
 ertTrue(
+%22%5C%22%22 + e.getMessage() + %22%5C%22%22 +%0A                            %22 does not contain %22 +%0A                            %22%5C%22%22 + exceptionMessage + %22%5C%22%22,%0A                    
 e.getMes
@@ -586,16 +586,29 @@
 Message)
+%0A            
 );%0A     

improve error message on test failure