Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.
Replies: 0 - Pages: 1  
  Click to reply to this thread Reply

JDave 0.8.0, behavior driven development for Java

URL: jdave.org

At 3:04 PM on May 7, 2007, Joni Freeman wrote:

JDave is a framework which provides an easy way to specify behavior of your classes. Key concepts are specification , which is a container for behaviors . Behaviors define the behavior of a class and they are always expressed within some context . Context defines the setting where particular behavior applies.

For example, we could specify a Stack by first identifying that it has (at least) three interesting states, an empty stack, a full stack and a stack which is neither empty nor full. We would then continue by specifying the behavior of a Stack when it is in these states. The behavior can then be expressed as:


Stack specification
Empty stack
- is empty
- is no longer empty after push
- ...
Full stack
- is full
- complains on push
- contains all items
- ...
Stack which is neither empty nor full
- adds to the top when pushing new item
- ...



thread.rss_message