Commit Graph
64 Commits
Author SHA1 Message Date
Andy Clement b46afe7e39 finally some comparator logic that makes sense :)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@966 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 02:21:25 +00:00
Andy Clement 75d26cdb9d More tests, corrections in standard comparator, more helper methods in StandardEvaluationContext.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@965 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 00:03:53 +00:00
Andy Clement 9f5676a4b1 more tests, minor fixes. some findbugs issues addressed.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@963 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 22:03:38 +00:00
Andy Clement f899a72e1c Changed signature of convertValue() to keep the Sun compiler happy
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@960 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 16:00:53 +00:00
Andy Clement cfa9cdf035 More tests and some fixes. Also created tests based on the documentation examples.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@952 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 01:43:07 +00:00
Andy Clement 29d27f3687 Removed unnecessary code. Increased test coverage from 70>75% - still some way to go
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@946 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-08 04:50:43 +00:00
Andy Clement 0374aacec1 Improving test coverage, more language consistency
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@931 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-06 19:04:04 +00:00
Andy Clement 7cc791ae9e More test coverage for the expression AST
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@927 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-04 01:04:31 +00:00
Andy Clement 5eb884a7db objects flowing around in expression evaluation are now TypedValue's - these carry generics info, used for conversions.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@925 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-03 23:39:14 +00:00
Andy Clement 2fb46e48c0 design change - no longer surfacing typeDescriptor through property accessor. conversion done internally in property write() code
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@914 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 23:27:49 +00:00
Andy Clement c289840f9a initial typeDescriptor awareness in the EL. some basic testing of using GenericConversionService
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@911 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 21:38:51 +00:00
Andy Clement ec411f271b Indexed objects (arrays/maps/lists) now settable
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@878 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-30 19:40:09 +00:00
Mark Pollack 6ac7a300c8 Fix SPEL tests when using maven. With the maven test runner expression.spel.SetValueTests is run before expression.spel.EvaluationTests. The order is reversed in eclipse/spring-build. Static variables are modifed in SetValueTests that cause EvaluationTests to fail if it is run first. Make a simple fix so SetValueTests uses a local evaluation context variable instead of a static variable.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@848 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-27 16:05:38 +00:00
Keith Donald 0a06a95d68 set value tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@813 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-24 19:55:39 +00:00
Keith Donald 199f6943d1 pruned bean references support as it was not used
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@809 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-23 21:33:15 +00:00
Juergen Hoeller 793bf07941 revised expression parser API design
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@619 50f2f4bb-b051-0410-bef5-90022cba6387
2009-02-12 23:03:58 +00:00
Andy Clement a0a95ca5b7 Refactored package structure and made some getValue() methods generic
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@390 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-12 23:07:08 +00:00
Juergen Hoeller a0dfb69aaa Java 5 code style
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@341 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-27 00:27:52 +00:00
Juergen Hoeller 0b0163e026 Java 5 code style
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@331 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-25 01:29:54 +00:00
Juergen Hoeller a5253bec7f EL container integration; support for contextual objects; removal of deprecated Spring 2.0 functionality; Java 5 code style
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@305 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-20 02:10:53 +00:00
Andy Clement 5519df3491 map access tests added
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@105 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-17 16:20:40 +00:00
Andy Clement 6fa37bf29b removing: initializers/processors/in operator
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@104 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-17 15:23:15 +00:00
Andy Clement f497d6af62 renamed operator IS to INSTANCEOF, may yet delete..
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@103 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 17:20:03 +00:00
Andy Clement 0000c6f260 bean references removed, no more @(context:beanname)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@102 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 17:13:31 +00:00
Andy Clement 3f1ba9d2a5 removed lambda functions, local function and local variable references
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@101 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 17:00:16 +00:00
Andy Clement 44927db29a date literal removed
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@100 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 16:50:00 +00:00
Andy Clement 39c262e5a0 Removing functionality. Removed expression list support, cannot say (foo();bar()) any more
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@98 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-15 21:55:11 +00:00
Andy Clement 3f75a45b23 Removing functionality. Removed soundslike/distanceto/like operators
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@97 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-15 21:43:38 +00:00
Andy Clement 10d45b2001 Final commit before the great 'stripdown'. Used clover to determine coverage and added tests as necessary.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@96 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-15 20:14:36 +00:00
Andy Clement 5cdeaa9644 added test and behaviour for calling a java method with incorrect number of arguments
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@95 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:43:17 +00:00
Andy Clement 7694700a33 new function invocation tests for normal and error behaviour
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@93 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:36:00 +00:00
Andy Clement 9295e94878 added support for Integer > Float conversion.
Moved some tests from EvaluationTests into OperatorTests.
Fleshed out OperatorTests to verify type promotions for mixed type operands.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@90 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 17:54:01 +00:00
Andy Clement 1502732dd2 more tests relating to reals
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@89 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 17:06:24 +00:00
Andy Clement 67bcc88a13 moved TODOs to readme
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@84 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 00:22:09 +00:00
Andy Clement e28d4e8a11 moved test into ParserErrorMessageTests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@83 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 00:21:45 +00:00
Andy Clement f75701fbba modified Date tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@82 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 00:21:21 +00:00
Andy Clement de965b88ea starting to sort out like/matches. Matches is the java regex related one. Like is the SQL related one. But the spring .net 'like' doesn't seem to be the same as the SQL doc I found for like...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@78 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-17 01:42:06 +00:00
Andy Clement edeeda1f24 improved javadoc, error handling and testing of matches
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@76 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-17 01:28:26 +00:00
Andy Clement 07076642a3 fixing error handling in 'is' operator
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@74 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-17 01:27:45 +00:00
Andy Clement e470453868 fixing TODOs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@73 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-17 01:27:18 +00:00
Andy Clement f8867eb950 fixing TODOs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@70 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-17 01:26:11 +00:00
Andy Clement 4be7f7dc87 remove java.awt as a default import in the StandardTypeLocator
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@65 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 18:21:03 +00:00
Andy Clement 7ea18e23ab fixing TODOs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@59 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 01:56:29 +00:00
Andy Clement bc38f8cd66 added support for long[] in stringValueOf() - plus an error reported if the type passed in is not supported
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@58 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 01:56:16 +00:00
Andy Clement e739b83214 correcting TODO
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@55 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 01:44:12 +00:00
Andy Clement a17ab6cfaf fixed some tests that will now break because int/long can be treated as boolean. May need to change again if real numbers get the same treatment.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@54 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 01:43:51 +00:00
Andy Clement f9f6e8cf21 new tests for ternary - checking conversion of numbers to boolean and correct error when condition result not convertable to boolean
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@53 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 01:43:15 +00:00
Andy Clement 8daeb8b200 removed redundant test - there is no non-optimal reflection accessor to test now
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@52 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-16 01:42:39 +00:00
Andy Clement 8c604095a6 Parser error message improvements: enhanced harness and used it in new parser error message tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@39 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-15 00:26:38 +00:00
Andy Clement 29413137b0 reorganizing tests - extracting EvaluationTests out into other test classes. Started work on parser error message tests.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@30 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-14 20:24:31 +00:00