IDEA-79714 No code example for certain code style space changes

This commit is contained in:
Denis.Zhdanov
2012-01-11 17:17:00 +04:00
parent 9f9b75c2aa
commit be39880ffd
3 changed files with 14 additions and 10 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2010 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,6 +15,8 @@
*/
package com.intellij.psi.formatter.java;
import com.intellij.psi.codeStyle.CommonCodeStyleSettings;
/**
* Is intended to hold specific java formatting tests for 'spacing' settings.
*
@@ -301,6 +303,7 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
public void testSpacesBeforeResourceList() throws Exception {
getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true;
getSettings().BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE;
getSettings().SPACE_BEFORE_TRY_PARENTHESES = true;
getSettings().SPACE_BEFORE_TRY_LBRACE = true;