File tree Expand file tree Collapse file tree 3 files changed +27
-26
lines changed
main/java/com/google/testing/compile
test/java/com/google/testing/compile Expand file tree Collapse file tree 3 files changed +27
-26
lines changed Original file line number Diff line number Diff line change 18
18
import static java .nio .charset .StandardCharsets .UTF_8 ;
19
19
import static javax .tools .JavaFileObject .Kind .SOURCE ;
20
20
21
+ import com .google .common .base .Function ;
22
+ import com .google .common .base .Objects ;
23
+ import com .google .common .collect .ImmutableList ;
24
+ import com .google .common .collect .ImmutableListMultimap ;
25
+ import com .google .common .collect .ImmutableSet ;
26
+ import com .google .common .collect .Multimaps ;
27
+
28
+ import com .sun .source .tree .CompilationUnitTree ;
29
+ import com .sun .source .util .JavacTask ;
30
+ import com .sun .tools .javac .api .JavacTool ;
31
+
21
32
import java .io .IOException ;
22
33
import java .util .List ;
23
34
import java .util .Locale ;
30
41
import javax .tools .JavaFileObject ;
31
42
import javax .tools .ToolProvider ;
32
43
33
- import com .google .common .base .Function ;
34
- import com .google .common .base .Objects ;
35
- import com .google .common .collect .ImmutableList ;
36
- import com .google .common .collect .ImmutableListMultimap ;
37
- import com .google .common .collect .ImmutableSet ;
38
- import com .google .common .collect .Multimaps ;
39
- import com .sun .source .tree .CompilationUnitTree ;
40
- import com .sun .source .util .JavacTask ;
41
- import com .sun .tools .javac .api .JavacTool ;
42
-
43
44
/**
44
45
* Utilities for performing compilation with {@code javac}.
45
46
*
Original file line number Diff line number Diff line change 17
17
18
18
import static com .google .common .base .Preconditions .checkState ;
19
19
20
+ import com .google .common .collect .ImmutableList ;
21
+ import com .google .common .collect .ImmutableSet ;
22
+ import com .google .testing .compile .Compilation .Result ;
23
+
24
+ import org .junit .Rule ;
25
+ import org .junit .rules .TestRule ;
26
+ import org .junit .runner .Description ;
27
+ import org .junit .runners .JUnit4 ;
28
+ import org .junit .runners .model .Statement ;
29
+
20
30
import java .util .Set ;
21
31
import java .util .concurrent .atomic .AtomicReference ;
22
32
28
38
import javax .lang .model .util .Elements ;
29
39
import javax .lang .model .util .Types ;
30
40
31
- import org .junit .Rule ;
32
- import org .junit .rules .TestRule ;
33
- import org .junit .runner .Description ;
34
- import org .junit .runners .JUnit4 ;
35
- import org .junit .runners .model .Statement ;
36
-
37
- import com .google .common .collect .ImmutableList ;
38
- import com .google .common .collect .ImmutableSet ;
39
- import com .google .testing .compile .Compilation .Result ;
40
-
41
41
/**
42
42
* A {@link JUnit4} {@link Rule} that executes tests such that an instances of {@link Elements}
43
43
* and {@link Types} are available during execution.
Original file line number Diff line number Diff line change 17
17
18
18
import static org .truth0 .Truth .ASSERT ;
19
19
20
+ import org .junit .Before ;
21
+ import org .junit .Rule ;
22
+ import org .junit .Test ;
23
+ import org .junit .runner .RunWith ;
24
+ import org .junit .runners .JUnit4 ;
25
+
20
26
import java .util .ArrayList ;
21
27
import java .util .List ;
22
28
import java .util .concurrent .atomic .AtomicInteger ;
28
34
import javax .lang .model .util .Elements ;
29
35
import javax .lang .model .util .Types ;
30
36
31
- import org .junit .Before ;
32
- import org .junit .Rule ;
33
- import org .junit .Test ;
34
- import org .junit .runner .RunWith ;
35
- import org .junit .runners .JUnit4 ;
36
-
37
37
/**
38
38
* Tests the {@link CompilationRule} by applying it to this test.
39
39
*/
You can’t perform that action at this time.
0 commit comments