82b19499e3
Use generated tests approach in converter tests Introduce two seperate generated test cases of each of configurations, all tests are generated in both test cases Test data for plugin configuration has extension "ide.kt", for basic configuration "*.kt" Test data file is used to determine type of the test (file/class/expression/...) instead of directory, all test data is moved accordingly Add abstract base classes for generated tests Rename test folder "file" to "misc" (for the lack of imagination)
34 lines
737 B
Java
34 lines
737 B
Java
//file
|
|
public class Identifier<T> {
|
|
private final T myName;
|
|
private boolean myHasDollar;
|
|
private boolean myNullable = true;
|
|
|
|
public Identifier(T name) {
|
|
myName = name;
|
|
}
|
|
|
|
public Identifier(T name, boolean isNullable) {
|
|
myName = name;
|
|
myNullable = isNullable;
|
|
}
|
|
|
|
public Identifier(T name, boolean hasDollar, boolean isNullable) {
|
|
myName = name;
|
|
myHasDollar = hasDollar;
|
|
myNullable = isNullable;
|
|
}
|
|
|
|
@Override
|
|
public T getName() {
|
|
return myName;
|
|
}
|
|
}
|
|
|
|
public class User {
|
|
public static void main() {
|
|
Identifier<?> i1 = new Identifier<String>("name", false, true);
|
|
Identifier i2 = new Identifier<String>("name", false);
|
|
Identifier i3 = new Identifier<String>("name");
|
|
}
|
|
} |