1 Mar 2010 01:42
[Lift] Less boilerplate in your specifications / tests
Hi all Lift-developers,
I have noticed a few commits recently where the declarations for
specifications could be reduced to something simpler.
For example:
import org.specs._
import org.specs.runner._
class BindingsSpecTest extends Runner(BindingsSpec) with JUnit with
Console
object BindingsSpec extends Specification
can be written as
import org.specs._
class BindingsSpec extends SpecificationWithJUnit
- the BindingsSpec class will run with maven, provided that you add
the proper include directive in the pom.xml file, like this, for
example:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
(Continue reading)
RSS Feed