Added more tests, one of which tests usage of .getX() in toString, equals, and hashCode, which isn't fully working yet, so this test still fails.

This commit is contained in:
Reinier Zwitserloot committed 2010-07-22 01:59:30 +02:00
1 parent 483e23d385
commit 7c47aa1125
9 files changed
+268

No files matched your search

@@ -0,0 +1,28 @@
import lombok.Getter;
import lombok.AccessLevel;
class MultiFieldGetter {
@Getter(AccessLevel.PROTECTED) int x;
@Getter(AccessLevel.PROTECTED) int y;
MultiFieldGetter() {
super();
}
protected @java.lang.SuppressWarnings("all") int getX() {
return this.x;
}
protected @java.lang.SuppressWarnings("all") int getY() {
return this.y;
}
}
@Getter class MultiFieldGetter2 {
@Getter(AccessLevel.PACKAGE) int x;
@Getter(AccessLevel.PACKAGE) int y;
MultiFieldGetter2() {
super();
}
@java.lang.SuppressWarnings("all") int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all") int getY() {
return this.y;
}
}