org.scalatest.fixture.FixtureSuite

trait OneArgTest

[source: org/scalatest/fixture/FixtureSuite.scala]

protected trait OneArgTest
extends (FixtureParam) => Unit
Trait whose instances encapsulate a test function that takes a fixture and config map.

The FixtureSuite trait's implementation of runTest passes instances of this trait to FixtureSuite's withFixture method, such as:

   def testSomething(fixture: Fixture) {
     // ...
   }
   def testSomethingElse(fixture: Fixture, info: Informer) {
     // ...
   }
   

For more detail and examples, see the documentation for trait FixtureSuite.

Method Summary
abstract def apply (fixture : FixtureParam) : Unit
Run the test, using the passed FixtureParam.
abstract def configMap : scala.collection.immutable.Map[java.lang.String, Any]
Return a Map[String, Any] containing objects that can be used to configure the fixture and test.
abstract def name : java.lang.String
The name of this test.
Methods inherited from scala.Function1
scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def name : java.lang.String
The name of this test.

abstract def apply(fixture : FixtureParam) : Unit
Run the test, using the passed FixtureParam.
Overrides
scala.Function1.scala.Function1.apply

abstract def configMap : scala.collection.immutable.Map[java.lang.String, Any]
Return a Map[String, Any] containing objects that can be used to configure the fixture and test.


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