aboutsummaryrefslogtreecommitdiff
path: root/test/core/src
AgeCommit message (Collapse)Author
2014-05-01some pretty significant changes to the build system, to try and add testing ↵Reinier Zwitserloot
against ecj8 to the lineup, and to force compilation with the bootstrap classpath of JDK6 so that we won't accidentally add deps on things that JVM6es don't have.
2014-05-01[test harness] Java 7+ tests would not be triggered using java 8Roel Spilker
2014-03-04[configuration] Merge branch 'master' as we work on configuration.Reinier Zwitserloot
* Conflict due to adding topic() feature to logger in master, and 'field name' feature in config branch. * master has since updated to shiny new eclipse dep versions and the 'ant eclipseForDebugging' feature, but this branch added deps. Addressed that. * Renamed 'loggerCategory' to 'loggerTopic'. I know, that wasn't exactly right to do in a merge, but, there you have it. * Test infrastructure changed in configuration branch, and tests had been added in master branch. Conflicts: build.xml buildScripts/ivy.xml src/core/lombok/eclipse/handlers/HandleLog.java src/core/lombok/extern/apachecommons/CommonsLog.java src/core/lombok/extern/java/Log.java src/core/lombok/extern/log4j/Log4j.java src/core/lombok/extern/log4j/Log4j2.java src/core/lombok/javac/handlers/HandleLog.java test/transform/resource/after-ecj/ValInTryWithResources.java
2014-02-10[deps] Updated eclipse deps to 3.9 tree. This also enables testing java7 ↵Reinier Zwitserloot
features on ecj. [Log] updated naming for @Log (topic= instead of mchmulder's 'value').
2014-01-31[configuration] Added first automated test for the configuration framework. ↵Roel Spilker
For now, it fails.
2014-01-20[test] Missing after-X files used to be an implicit 'just ignore the ↵Reinier Zwitserloot
content' signal; now you need an explicit directive to allow this behaviour. [configuration] added tests for @Accessors configuration key implementations.
2014-01-19[configuration] added facilities to override conf file resolution for test ↵Reinier Zwitserloot
cases, and added first tests to test implementations of configuration-based stuff (FlagUsages, specifically). Error reporter has been refactored.
2014-01-18[test-directives] another update to the 'test directives' system; test files ↵Reinier Zwitserloot
now can start with directives (configuration keys, 'ignore', and java language version limits), and the test directory runner now has a framework to handle these. All existing tests pass at this point.
2014-01-18[configuration] updates to the tests to streamline parsing 'directives', ↵Reinier Zwitserloot
which have become more important as input files now may need to set up some lombok configuration stuff.
2013-08-19Only look at the line number for errors and warnings.Roel Spilker
2013-07-16* Fixed issues with @FieldDefaults and @Value (you can NOT overrideReinier Zwitserloot
@Value's final-by-default and private-by-default with it; now appropriate warnings are emitted) * Builder now errors out on presence of most lombok annotations on an explicit builder class. * Builder now takes @FieldDefaults/@Value into account. * Builder on type now generates the constructor as package private instead of private to avoid synthetic accessor constructors. * added a bunch of test cases. * added a test case feature: If the expected file is omitted entirely but there are expected messages, the differences in the output itself are ignored. * streamlined checking for boolean-ness (removed some duplicate code) * added 'fluent' and 'chain' to @Builder.
2013-07-08gave up on adding support for moving javadoc to getter/setter in eclipse. ↵Reinier Zwitserloot
Eclipse breaks the javadoc out of the raw source and we can't modify that without breaking a billion things. To solve this issue we'd have to write some very complicated patches to intercept this process and somehow propagate the node that the javadoc is attached to AND translate from the ast model to dom or whatever is being used there. Not gonna happen for this low priority feature.
2013-05-24Fixed more issues related to java7's try-with-resources,Reinier Zwitserloot
and updated ECJ version detection.
2013-05-23Added methods to obtain JLS support-level version information from ↵Reinier Zwitserloot
AST/LombokNode. Tests updates to honour these with //version X at the top of any test file (now also in eclipse, which until now always said it was v6)
2013-05-23Added a method to obtain latest java language spec supported by hostReinier Zwitserloot
platform and implemented it for javac BUT NOT FOR ECJ!
2013-03-26We used to add the platform line ending when comparing test files. This ↵Roel Spilker
obviously doesn't work on windows; we force unix line ending now.
2013-03-18Added a //version option to test files to restrict them to specific versions.Reinier Zwitserloot
2013-03-11changed the pattern for writing dependencies to the various lib/ directoriesReinier Zwitserloot
to be organization-name.jar instead of just name.jar, in order to account for the ever lovely and wonderful apache's crazy decision to call the entirely separate log4j v2.0 also 'log4j'. This does mean you'll have to 'ant clean'.
2013-02-11BIG commit:Reinier Zwitserloot
* re-introduction of onMethod/onConstructor/onParam * tests checking error/warnings rewritten to be more heuristic, in order to accomodate difference in messaging between java6 and java 7 * Ability to eliminate java's own output of erroneous error messages (heh); i.e. those messages that are invalidated by lombok's actions. This mechanism is used for onMethod/onConstructor/onParam * First steps to unifying a billion setGeneratedBy calls into a single visitor traversal for eclipse' HandleGetter/Setter/Constructor/Wither * To simplify 'zooming in' the tests on just a few files, added an 'accept' mechanism. * Updated copyright headers of website to 2013.
2012-10-30Added annotation for the slf4j extended loggergrootjans
2012-10-30Fix for issue 408: IllegalArgumentException when generating setters in ↵Reinier Zwitserloot
eclipse for fields with @Deprecated on them.
2012-10-29//ignore in files now counts even if the 'ignore' comment is followed by ↵Reinier Zwitserloot
more text (such as the explanation for why it is being ignored).
2012-10-25The testrunner now uses a different mechanism to verify correctness of ↵Reinier Zwitserloot
produced errors and warnings (i.e. we intentionally compile code with errors in them to verify that the appropriate error or warning message is emitted when lombok is active during a compilation run of either javac or ecj) - instead of string comparisons, it's a little more complex. This to enable testing of both javac6 and javac7, even if they produce (slightly) different error output. Updated all message files in the 'expected output' directories to represent this change.
2012-10-22Ever since we do a lot more than just calling 'parse' when running delombok ↵Reinier Zwitserloot
in our tests, the tests are in the unfortunate scenario where we always compile against a given javac (lib/build/javac6.jar), and always run the tests against a given javac, but that javac tries to use the bootclasspath of the host JRE, and if that is JRE7, you get all sorts of errors. I fixed it by still compiling against a given javac (we can only ship one lombok.jar after all), but having the test task run with a given bootclasspath and a given javac.jar. There are 2 tasks that download both rt.jar and javac.jar for either OpenJDK6 or OpenJDK7, and it writes a properties file with those locations. The test task will use this property file, and explain what you need to do if it is not there. Incidentally, this brought to light issue 422: Delombok in java7 produces VerifyErrors.
2012-07-16Added feature to test suite to dump actual result of running ecj / delombok ↵Reinier Zwitserloot
on things to a directory (use -Dlombok.tests.dump_actual_files=/path/to/dir). Useful if you KNOW lombok is working but something changed in output, i.e. order of generated methods.
2012-03-05Issue 349: Test failed in some environmentsRoel Spilker
2012-02-25Use english locale on test via delombok for using english message catalog.Taiki Sugawara
2012-02-23Make the unittests for ecj work on windowsRoel Spilker
2012-02-14ecj tests and eclipse tests are now effectively doing the same thing, except ↵Reinier Zwitserloot
the ecj tests are written in a slightly more close-to-reality way, and do work for 'val'. eclipse test aspect removed.
2012-02-14More test files, test files updated to be valid java, and ecj test now goes ↵Reinier Zwitserloot
through the complete compile process. This means val and @Delegate testing is now enabled. TODO: Update -eclipse tests.
2012-02-14'val' now works for member types whose outers have generics. (issue #343)Reinier Zwitserloot
2011-11-07Changed copyright noticesRoel Spilker
2011-08-02Added some forgotten copyright headersReinier Zwitserloot
2011-07-25Delombok with a relative path and in 'output to directory' mode would NPE. ↵Reinier Zwitserloot
Fixes issue #241.
2011-07-18There's now 1 test suite that runs all tests, and 'ant eclipse' will make a ↵Roel Spilker
launch config that adds the appropriate -javaagent VM param to ensure the runWithEclipse tests work.
2011-06-05Allow "before" to be used as a source-package for eclipse tests (see ↵Philipp Eichhorn
LoggerSlf4jWithPackage).
2011-06-01Added a test infrastructure that simulates eclipse with diet-parse, ↵peichhorn
type-binding and so forth. Similar to eclipse, the test needs to be executed with lombok as vm-agent. @Delegate runs with this setup, sadly val does not, at least for now. And as expected the tests shows that @Synchronized and @SneakyThrows are currently broken for eclipse but not for ecj.
2010-11-10Tests were failing due to a bug in the compare error output part of the test ↵Reinier Zwitserloot
runner.
2010-11-10All tests pass! - The test framework has been updated a bit to fit with the ↵Reinier Zwitserloot
new way delombok works.
2010-11-03big changes to delombok to prep for resolution, when sourcepath and ↵Reinier Zwitserloot
classpath are relevant, and the flow needs to be parse all, then enter all, then transform all, instead of parse->enter->transform sequentially for each file in isolation.
2010-07-22Updated copyright statements and version release name.Reinier Zwitserloot
2010-07-22Added tests for ecj, fixed a few minor bugs that came out of that.Reinier Zwitserloot
2010-07-21refactored the tests to prepare running ecj as well as delombok.Reinier Zwitserloot
2010-07-20Added support for checking compiler messages (errors & warnings)Roel Spilker
2009-11-29'ant test' will now run the lombok unit tests.Reinier Zwitserloot
2009-11-29Can now mark test files as IgnoredRoel Spilker
2009-11-28Use new DirectoryRunner to run tests on all files in a directoryRoel Spilker
2009-11-28Added support for running unit tests using the method name to determine the ↵Roel Spilker
file to test
2009-11-27Improved error reportingunknown
2009-11-27Added a class that is easier to use than the parser itself for delombok, as ↵Reinier Zwitserloot
well as code to process entire directories at a time. Also removed duplication from the testcases.