So, what's a closure and why should I care? As Bob Dylan said, "...the times they are a changin'." The strange world of functional programming , once restricted to more esoteric languages such as LISP, Erlang and Haskell, is now invading the mainstream. Languages such as C# and Java...
I just wanted to share this with anyone who is not aware... Caveat: After reviewing my original post and the comments that follow I had initially elected to change the container tag in the example below from set to list. After thinking about it further I've returned the tag to 'set', since...
Recently I was playing with JUnit 4.X. I wanted to be able to define tests in nested classes as I had before with NUnit. This was to facilitate BDD-ish test definitions, where I break up unit tests by test context. My first attempt failed (of course) because JUnit was unable to see the nested classes...
This is mainly for my own reference but if it helps people out there great! The documentation on this aspect of JUnit is very poor. package agalliao.wealthManagment.domain; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite. class ) @Suite.SuiteClasses({ investmentTests....