Menu

Mock Objects

Developers
uptown
2006-08-05
2013-04-19
  • uptown

    uptown - 2006-08-05

    I have been looking over the mock object code. Right now you can only supply an ognl expression as a return value.

    <addNums args="Double d, Double e">ognl:d + e</addNums>

    (d + e is returned) It would be good to extend this to were you could declare a reference to a serialized object in the xml. Is there something i'm missing and ognl can support return a none primative  value something like 'ognl:new Object()'? 

     
    • deje

      deje - 2006-08-10

      Yea ognl can do the following:

      ognl: new java.lang.Date()
      ognl: new java.lang.String('Hello')

      etc.
      Ognl is more or less a turing complete language, except for that fact that it doesnt support closures it would also be a full-fledged lambda calculus (like scheme).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.