Roel Spilker
0d7df01a07
Updated the tests to reflect recent modifications: use 'this' where possible and add @SuppressWarnings for all generated fields and methods.
2010-07-20 01:35:40 +02:00
Reinier Zwitserloot
01ff2a8b79
With the new features, some of the delombok based unit tests no longer work.
2010-07-20 00:39:04 +02:00
Reinier Zwitserloot
0072efc4d6
Now also testing value= as well as arrays in annotation params.
2010-01-07 23:52:36 +01:00
Reinier Zwitserloot
3fc7ac6207
Added test to ensure interfaces print correctly (test case because 'public' and 'abstract' are implied).
2010-01-07 23:48:21 +01:00
Reinier Zwitserloot
24be0f86ad
Failing tests now do a full print of the actual and expected delombok output.
2010-01-07 22:50:28 +01:00
Reinier Zwitserloot
aa2643092d
Javac's printer screws up on complex enums. Added tests for this case.
2010-01-07 22:49:51 +01:00
Reinier Zwitserloot
1f7bddd688
Added test suite for issue #93 - apparently this problem (naming your class GetFoo prevents lombok from making a getFoo method) only occurs on eclipse, as the test passes.
2009-12-26 04:11:22 +01:00
Roel Spilker
d5e7ae61c0
Added tests to see if we handle fields that start with a $ correctly
2009-12-07 16:05:19 +01:00
Roel Spilker
89c058f96e
Added tests to @Data to check if a field starting with $ will be ignored
2009-12-07 15:59:29 +01:00
unknown
d4ed666abf
Added some tests for @ToString
2009-12-02 17:37:53 +01:00
Roel Spilker
9f69893ce2
Changed the order of the generated methods in for @Data
...
- Constructor(s)
- Getters/Setters per field
- equals
- hashCode
- toString
Added first test for @Data
2009-12-02 04:21:31 +01:00
Roel Spilker
2ef7ef3e9f
Improved tests to also test on value= parameters
2009-12-02 02:48:07 +01:00
Roel Spilker
2ff16d3375
Added new tests for SneakyThrows
2009-12-02 02:47:38 +01:00
Roel Spilker
1f4fb2fb48
Fixed #73 SneakyThrows without parameter did not default to Throwable.class
...
Added tests for SneakyThrows
2009-12-02 01:51:50 +01:00
Roel Spilker
2aebaff460
Moved test resource files to a better matching location
2009-12-01 23:31:12 +01:00
unknown
2a56f341d0
Finally got the printing of comments right. Also added a test to see if the delomboking a file is an idempotent operation
2009-11-30 18:48:42 +01:00
Roel Spilker
34f38dad21
More tests for Synchronized
2009-11-29 23:25:53 +01:00
Roel Spilker
8d9b4fdaca
Fixed the test code for Synchronized
2009-11-29 18:30:58 +01:00
Roel Spilker
18b2cc0796
Merge branch 'master' of git@github.com:rzwitserloot/lombok
2009-11-29 17:28:40 +01:00
Roel Spilker
78c1f1da11
Updated tests for Getter, Setter and Cleanup. Added Synchronized
2009-11-29 17:28:27 +01:00
Reinier Zwitserloot
c646def579
'ant test' will now run the lombok unit tests.
2009-11-29 17:23:19 +01:00
Roel Spilker
3cf45e932b
Improved comment placement (newlines, whitespace)
2009-11-29 16:44:05 +01:00
Roel Spilker
f0585f4ed4
Can now mark test files as Ignored
2009-11-29 01:19:14 +01:00
Roel Spilker
be20f7a118
Added tests for Setter, Cleanup and NonNull
2009-11-29 01:07:53 +01:00
Roel Spilker
0b36718d20
Annotations on parameters should be inline
2009-11-29 01:04:22 +01:00
Roel Spilker
ffb78b6af6
Added more Getter-tests
2009-11-28 23:30:10 +01:00
Roel Spilker
311b667dfd
New tests
2009-11-28 22:51:40 +01:00
Roel Spilker
6d9bc68469
Use new DirectoryRunner to run tests on all files in a directory
2009-11-28 22:50:44 +01:00
Roel Spilker
e67e9e14dc
Added support for running unit tests using the method name to determine the file to test
2009-11-28 00:15:58 +01:00
unknown
645a0b06c7
Removed empty () for annotation without parameters
2009-11-27 17:37:26 +01:00
unknown
f2de0a28e7
Improved error reporting
2009-11-27 17:36:03 +01:00
Reinier Zwitserloot
3919e192f1
The delombok task now works!
2009-11-27 14:08:50 +01:00
Reinier Zwitserloot
4316e77e1e
Added a class that is easier to use than the parser itself for delombok, as well as code to process entire directories at a time.
...
Also removed duplication from the testcases.
2009-11-27 07:18:48 +01:00
Roel Spilker
391db3dcec
Thorough work on inserting comments in the proper place for delombok; should now work fine with GWT native methods!
...
NON-NLS-1 is still theoretically problematic, but that'll be a fix for another day.
Also added ability to recognize that nothing has changed, which will copy the original file instead of reparsing it.
2009-11-27 04:23:41 +01:00
Roel Spilker
c91e3701b9
Added another test
2009-11-27 02:44:46 +01:00
Reinier Zwitserloot
e5d248c3cc
delombok now calls lombok. wahey!
2009-11-27 00:38:58 +01:00
unknown
f22021ca78
Minor refactoring + added testcase for for-loop
2009-11-26 17:12:41 +01:00
Roel Spilker
6cd3b8a8ca
Major restructuring+adding tests
2009-11-26 01:45:55 +01:00