View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.imports.customimportorder;
2   
3   import static java.io.File.createTempFile;
4   import static java.awt.Button.ABORT; //warn, LEXIC, should be before java.io.File.createTempFile
5   import static javax.swing.WindowConstants.*;
6   
7   import java.util.List; //warn, LEXIC, should be before javax.swing.WindowConstants.*
8   import java.util.StringTokenizer; //warn, LEXIC, should be before javax.swing.WindowConstants.*
9   import java.util.*; //warn, LEXIC, should be before javax.swing.WindowConstants.*
10  import java.util.concurrent.AbstractExecutorService; //warn, LEXIC, should be before javax.swing.WindowConstants.*
11  import java.util.concurrent.*; //warn, LEXIC, should be before javax.swing.WindowConstants.*
12  
13  import com.puppycrawl.tools.*;
14  import com.*; //warn, LEXIC, should be before com.puppycrawl.tools.*
15  
16  import com.google.common.base.*; //warn, LEXIC, should be before com.puppycrawl.tools.*
17  import org.junit.*;
18  
19  public class InputCustomImportOrderDefault2 {
20  }
21  /*
22  test: testOrderRuleWithOneGroup()
23  configuration:
24          checkConfig.addAttribute("thirdPartyPackageRegExp", "org.");
25          checkConfig.addAttribute("customImportOrderRules",
26                  "STANDARD_JAVA_PACKAGE");
27          checkConfig.addAttribute("sortImportsInGroupAlphabetically", "true");
28  */