package org.ngrinder.script.handler;

import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;

import org.junit.Test;

public class GroovyHandlerTest {
	@Test
	public void testGroovySyntaxError() {
		GroovyScriptHandler handler = new GroovyScriptHandler();
		String checkSyntaxErrors = handler.checkSyntaxErrors("hello", "print (( 'hello';");
		assertThat(checkSyntaxErrors, notNullValue());
	}
}

@@ -84,16 +84,64 @@
 Value;%0D%0A
+import static org.hamcrest.Matchers.nullValue;%0D%0A
 import s
@@ -483,15 +483,141 @@
 ue());%0D%0A
+%09%09checkSyntaxErrors = handler.checkSyntaxErrors(%22hello%22, %22print 'hello';%22);%0D%0A%09%09assertThat(checkSyntaxErrors, nullValue());%0D%0A%0D%0A
 %09%7D%0D%0A%7D%0D%0A

Add more test