nicer enter key indentation handling after -> and before } in closures
[fedora-idea.git] / plugins / groovy / test / org / jetbrains / plugins / groovy / lang / surroundWith / SurroundExpressionTest.java
blob310e1e26420d45ea1926f73420063ccd6c60b1dc
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;
11 /**
12 * User: Dmitry.Krasilschikov
13 * Date: 01.06.2007
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()); }
24 @Override
25 protected String getBasePath() {
26 return TestUtils.getTestDataPath() + "groovy/surround/expr/";