Added a number of test for AllArgsConstuctor, RequiredArgsConstructor, NoArgsConstructor annotations and added a test for issue: 172

This commit is contained in:
grootjans committed 2011-02-14 22:53:08 +01:00
1 parent 3a6615234d
commit ed4068d842
4 files changed
+157

No files matched your search

@@ -0,0 +1,69 @@
class RequiredArgsConstructor1 {
final int x;
String name;
@java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
public RequiredArgsConstructor1(final int x) {
this.x = x;
}
}
class RequiredArgsConstructorAccess {
final int x;
String name;
@java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
protected RequiredArgsConstructorAccess(final int x) {
this.x = x;
}
}
class RequiredArgsConstructorStaticName {
final int x;
String name;
@java.lang.SuppressWarnings("all")
private RequiredArgsConstructorStaticName(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
public static RequiredArgsConstructorStaticName staticname(final int x) {
return new RequiredArgsConstructorStaticName(x);
}
}
class RequiredArgsConstructorWithAnnotations {
final int x;
String name;
@Deprecated
@java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
public RequiredArgsConstructorWithAnnotations(final int x) {
this.x = x;
}
}
class AllArgsConstructor1 {
final int x;
String name;
@java.beans.ConstructorProperties({"x", "name"})
@java.lang.SuppressWarnings("all")
public AllArgsConstructor1(final int x, final String name) {
this.x = x;
this.name = name;
}
}
class NoArgsConstructor1 {
final int x;
String name;
@java.lang.SuppressWarnings("all")
public NoArgsConstructor1() {
}
}