/
BuilderTest.java
106 lines (82 loc) · 2.78 KB
/
BuilderTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package de.plushnikov.intellij.plugin.processor;
import de.plushnikov.intellij.plugin.AbstractLombokParsingTestCase;
import java.io.IOException;
/**
* Unit tests for IntelliJPlugin for Lombok, based on lombok test classes
*/
public class BuilderTest extends AbstractLombokParsingTestCase {
@Override
public void setUp() throws Exception {
super.setUp();
// Add dummy classes, which are absent in mockJDK
myFixture.addClass("package java.util;\n public interface NavigableMap<K,V> extends java.util.SortedMap<K,V> {}");
}
// This test is lombok's homepage example.
public void testBuilder$BuilderExample() throws IOException {
doTest(true);
}
// This test is lombok's homepage customized example.
public void testBuilder$BuilderExampleCustomized() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSimple() throws IOException {
doTest(true);
}
public void testBuilder$BuilderComplex() throws IOException {
doTest(true);
}
public void testBuilder$BuilderChainAndFluent() throws IOException {
doTest(true);
}
public void testBuilder$BuilderWithAccessors() throws IOException {
doTest(true);
}
// This test is lombok's homepage example with predefined elements and another inner class.
public void testBuilder$BuilderPredefined() throws IOException {
doTest(true);
}
public void testBuilder$BuilderWithExistingBuilderClass() throws IOException {
doTest(true);
}
public void testBuilder$BuilderConstructorException() throws IOException {
doTest(true);
}
public void testBuilder$BuilderAndAllArgsConstructor() throws IOException {
doTest(true);
}
public void testBuilder$BuilderMethodException() throws IOException {
doTest(true);
}
public void testBuilder$BuilderValueData() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSingularGuavaListsSets() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSingularGuavaMaps() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSingularSets() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSingularLists() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSingularMaps() throws IOException {
doTest(true);
}
// ignored because of disabled auto singularization
public void ignore_testBuilder$BuilderSingularNoAuto() throws IOException {
doTest(true);
}
// ignored because of disabled guava redirection
public void ignore_testBuilder$BuilderSingularRedirectToGuava() throws IOException {
doTest(true);
}
public void testBuilder$BuilderInstanceMethod() throws IOException {
doTest(true);
}
public void testBuilder$BuilderSingularWithPrefixes() throws IOException {
doTest(true);
}
}