Commit Graph

2579 Commits

Author SHA1 Message Date
Yasser Zamani caeea2145f test not create when no session
See also WW-4741
2018-01-31 13:57:21 +03:30
Yasser Zamani b5cfccace3 test no session but with locale parameter
See also WW-4741
2018-01-31 13:33:44 +03:30
Lukasz Lenart 92e931d169 WW-4741 Improves tests to cover the new logic 2018-01-31 07:21:53 +01:00
Lukasz Lenart e9a4bcd776 WW-4741 Does not create session if it doesn't exist 2018-01-31 07:21:35 +01:00
Yasser Zamani 9b892cc7fd Merge pull request #206 from lukaszlenart/scan-deeper
WW-4912: scan package-info and class at the same time
2018-01-30 13:17:09 +03:30
Yasser Zamani 8d4194bbf7 allow duplicate in AnnotationUtils.findAnnotations result
See also WW-4912
2018-01-30 12:21:33 +03:30
Yasser Zamani cf71e0f34f add support finding annotations on interfaces and their packages
See also WW-4912
2018-01-30 11:35:16 +03:30
Yasser Zamani 97012c78a9 Merge pull request #189 from lukaszlenart/upgrade-spring
WW-4899: upgrade Spring
2018-01-30 10:47:04 +03:30
zalsaeed f34cf78ae3 Initial test dedicated for the DefaultUnknownHandlerManager (#205)
* Initial test dedicated for the DefaultUnknownHandlerManager

* fixed the licensing and authore comments issues that causes build to fail

* follow good practice when initializing objects

* use TestCase to enhance performance
2018-01-29 12:39:18 +03:30
Lukasz Lenart 72058bf4c6 Reverts findAnnotation to its previous state 2018-01-29 09:04:03 +01:00
Lukasz Lenart 46462b3d00 Rephrases JavaDoc to better express function's meaning 2018-01-29 08:51:17 +01:00
Lukasz Lenart a9899b6622 Introduces new method find all annotations 2018-01-26 11:47:10 +01:00
Lukasz Lenart a3180e3069 Adds test to cover searching down the hierarchy 2018-01-25 12:28:09 +01:00
Lukasz Lenart d5926b7a21 Searches hierarchy down to Object class for annotation 2018-01-25 12:27:54 +01:00
Yasser Zamani 9beb940136 Merge pull request #201 from HedjuHor/WW-4891
WW-4891 Debug tag should not display anything when not in dev mode
2018-01-20 09:39:32 +03:30
Hedju Hor 17b598433d WW-4891 PrepareOperations overrideDevMode for explicitly switch on for this action only 2018-01-18 23:10:25 +01:00
Yasser Zamani bba17b6496 add tests for initializable to cover more scopes 2018-01-16 14:23:41 +03:30
Lukasz Lenart 355e4b517f Adds additional test to cover deprecated option 2018-01-15 18:00:42 +01:00
Lukasz Lenart 1ec1e71d41 Adds test to cover the new constant 2018-01-15 17:32:34 +01:00
Lukasz Lenart e23197ab1b Uses the new constant and makes an old one deprecated 2018-01-15 17:32:24 +01:00
Lukasz Lenart c21fb94921 Defines a new constant to limit collection auto growth 2018-01-15 17:31:26 +01:00
Lukasz Lenart 29e1847f64 Merge pull request #199 from yasserzamani/WW-4906
fix conversion by annotation and WW-4906
2018-01-15 11:50:46 +01:00
Hedju Hor 02b61b2c05 WW-4891 Debug tag should not display anything when not in dev mode 2018-01-14 15:54:41 +01:00
Yasser Zamani 29b29a9c64 Merge pull request #196 from lukaszlenart/init-like-a-boss
WW-4905: Allows Initializable interface on implementing class instead of interface
2018-01-10 12:09:14 +03:30
Yasser Zamani 5e237e0fd3 fix and add test for lazy and early initialization of prototypes 2018-01-09 21:39:34 +03:30
Lukasz Lenart 23077d3ee9 Loads classes in advance 2018-01-09 16:02:33 +01:00
Lukasz Lenart 4fbded7147 Fixes test to run under JDK8 2018-01-09 15:39:10 +01:00
Lukasz Lenart f9f0f36d29 Increases class visibility 2018-01-09 14:25:13 +01:00
Lukasz Lenart f60095bae9 Fixes failing tests 2018-01-09 13:53:45 +01:00
Lukasz Lenart e4a3669061 Moves wrapping factories into Scope 2018-01-09 13:50:57 +01:00
Yasser Zamani 38450c9a70 improve tests for lazy and early initialization 2018-01-09 11:34:58 +03:30
Yasser Zamani df4a18107f add tests for lazy and early initialization 2018-01-08 14:42:03 +03:30
Yasser Zamani 9739291d79 change tests to cover more
Note: Also will delete CLASS from annotation type because it is already the default value
2018-01-07 17:15:36 +03:30
Yasser Zamani 4394238b7e un-deprecate TypeConversion.converter plus some improvements
See WW-4906
2018-01-07 15:49:33 +03:30
Yasser Zamani ff903e7754 add tests if conversion can get annotation from supers 2018-01-07 13:36:31 +03:30
Yasser Zamani 77cbafb74d fix conversion by annotation 2018-01-07 12:48:28 +03:30
Yasser Zamani faf50183e0 add conversion by annotation missing tests 2018-01-07 12:34:55 +03:30
Stefaan Dutry 08c058ea65 add test for setStyle method
Verified that the value is added as the cssStyle parameter.
2018-01-05 18:32:32 +01:00
Stefaan Dutry cd0773fb1b add test for setClass method
Verified that the value is added as the cssClass parameter.
2018-01-05 18:24:19 +01:00
Stefaan Dutry 0deea3f9e4 remove old subversion comments 2018-01-05 17:28:47 +01:00
Stefaan Dutry 2fd2cb5f97 add test for parameter with name "value"
Verified that the value parameter is added as the nameValue parameter.
2018-01-04 23:20:45 +01:00
Stefaan Dutry 7df1e67bac add test for setting acceskey
Verified that the value is added to the parameters after they have
been evaluated.
2018-01-04 23:08:12 +01:00
Stefaan Dutry dd76d39224 add tests for getTemplateDir method
Verified that:
- explicit templateDirectory gets precedence
- attribute templateDir gets picked if no explitit one is given
- defaultTemplateDirectory gets picked if there is no explicit one and
    an attribute templateDid
- "template" is returned as default value
2018-01-04 19:39:48 +01:00
Stefaan Dutry 476697f99a add test for buildTemplateName method
Verified that:
- default template name gets picked when no specific one is given
- specific template gets precedence over default one
2018-01-04 18:39:48 +01:00
Stefaan Dutry 0bfdc5e643 add test for mergeTemplate method
Test that a ConfigurationException is thrown when the
TemplateEngineManager returns null instead of a TemplateEngine
instance.
2018-01-04 16:32:21 +01:00
Stefaan Dutry a29051c835 add missing @Override annotation 2018-01-03 22:59:52 +01:00
Stefaan Dutry 7a251ddca9 add curly brackets (formatting)
- add curly brackets around single line conditional statements
2018-01-03 22:53:02 +01:00
Stefaan Dutry 38e3734930 change tabs into spaces (formatting) 2018-01-03 22:50:23 +01:00
Stefaan Dutry fe65910e0e change tabs into spaces (formatting) 2018-01-03 22:44:07 +01:00
Stefaan Dutry 1d0b375afd add curly brackets (formatting)
- add curly brackets around single line conditional statements
- place finally statement on same line as closing catch bracket
2018-01-03 22:26:36 +01:00