1 package org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
;
3 import org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
.surrounders
.surroundersImpl
.expressions
.GroovyWithParenthesisExprSurrounder
;
4 import org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
.surrounders
.surroundersImpl
.expressions
.GroovyWithTypeCastSurrounder
;
5 import org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
.surrounders
.surroundersImpl
.expressions
.GroovyWithWithExprSurrounder
;
6 import org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
.surrounders
.surroundersImpl
.expressions
.conditions
.GroovyWithIfElseExprSurrounder
;
7 import org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
.surrounders
.surroundersImpl
.expressions
.conditions
.GroovyWithIfExprSurrounder
;
8 import org
.jetbrains
.plugins
.groovy
.lang
.surroundWith
.surrounders
.surroundersImpl
.expressions
.conditions
.GroovyWithWhileExprSurrounder
;
9 import org
.jetbrains
.plugins
.groovy
.util
.TestUtils
;
12 * User: Dmitry.Krasilschikov
15 public class SurroundExpressionTest
extends SurroundTestCase
{
17 public void testBrackets1() throws Exception
{ doTest(new GroovyWithParenthesisExprSurrounder()); }
18 public void testIf1() throws Exception
{ doTest(new GroovyWithIfExprSurrounder()); }
19 public void testIf_else1() throws Exception
{ doTest(new GroovyWithIfElseExprSurrounder()); }
20 public void testType_cast1() throws Exception
{ doTest(new GroovyWithTypeCastSurrounder()); }
21 public void testWhile1() throws Exception
{ doTest(new GroovyWithWhileExprSurrounder()); }
22 public void testWith2() throws Exception
{ doTest(new GroovyWithWithExprSurrounder()); }
25 protected String
getBasePath() {
26 return TestUtils
.getTestDataPath() + "groovy/surround/expr/";