DevOps Zone is brought to you in partnership with:

Richard is an empirical technologist and solver of deep-dive technical problems. Recently he has been working on data analytics for high performance computing at jClarity and is writing a book on Java 8 Lambdas for O’Reilly. He is a leader in the London Java Community, sits on their JCP Committee and organises the Adopt-a-JSR programs for Lambdas and Date and Time in Java 8. Richard is also a known conference speaker, having talked at JavaOne, DevoxxUK, Geecon and JAX London. Previously he worked on static analysis problems, verifying part of a compiler and developing automated bug detection technology. He obtained a PhD in Computer Science from The University of Warwick where his research focussed on compiler theory. Richard is a DZone MVB and is not an employee of DZone and has posted 15 posts at DZone. You can read more from them at their website. View Full User Profile

Lambda Behave (Java Testing Framework) 0.3 Released

  • submit to reddit

Lambda Behave is a modern, fluent and fun testing framework for Java 8.

The Growing Community

Its great to see that despite only releasing a couple of months ago there's already quite a few people trying out or contributing to lambda behave. Massive thanks to the London Software Craftsmanship Community for hosting a talk on Lambda Behave and the London Java Community and Opencredo for hosting a hackday. At both events there were great questions and really useful feedback. in the case of the hackday also a few pull requests.

If you're based in London I will be giving another talk next week.

The 0.3 release has also had much appreciated code contributions from Chee Seng Chua, Chris West, Ross Binden, Martijn Verburg and Bill Venners. A big thanks also to anyone who has filed an issue or contributed feedback to the project.

So what's new in the 0.3 release?

Here's a quick bulletpoint rundown of the new features. As ever, Lambda Behave can found in maven central from whatever your preferred build tool is.

  • Rename the methods that run before and after specifications. This is an incompatible change and end users will need to update their code bases appropriately.
  • Integrate and simplify the random number generation and the data driven testing APIs.
  • Add the ability to reset mocks.
  • Add combinators for using business domain objects in property based testing.
  • Start logging seed numbers for random number generators used in property based testing.
  • Improve the Javadoc due to feedback from the Great folks at the LJC.
  • Add integration with ScalaTest so that you can run lambda-behave tests through the scala-test infrastructure.
  • Fix several bugs related to API corner cases.
  • Reintegrate the examples project into the maven multi-module project.

See the issue tracker for more details.

A Quick Plug

If you've been interested in this Lambda Behave blog post then you're probably also interested in Java 8! I've written a book and am teaching a training course to help get Java developers up to speed with Java 8 quickly.


Published at DZone with permission of Richard Warburton, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)