org.scalatest
Annotation Type WrapWith


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface WrapWith

Annotation to associate a wrapper suite with a non-Suite class, so it can be run via ScalaTest.

A class will be considered annotated with WrapWith if it is annotated directly or one of its superclasses (but not supertraits) are annotated with WrapWith. The wrapper suite must have a public, one-arg constructor that takes a Class instance whose type parameter is compatible with the class to wrap: i.e., the class being annotated with WrapWith. ScalaTest will load the class to wrap and construct a new instance of the wrapper suite, passing in the Class instance for the class to wrap. Here's an example:

Author:
Bill Venners, Chua Chee Seng

Required Element Summary
 java.lang.Class<? extends org.scalatest.Suite> value
          The wrapper suite.
 

Element Detail

value

public abstract java.lang.Class<? extends org.scalatest.Suite> value
The wrapper suite.

Returns:
a wrapper suite class, which must have a constructor that takes a single Class to run


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.