org.scalatest.PrivateMethodTester

class PrivateMethod

[source: org/scalatest/PrivateMethodTester.scala]

final class PrivateMethod[T](methodName : scala.Symbol)
extends AnyRef
Represent a private method, whose apply method returns an Invocation object that records the name of the private method to invoke, and any arguments to pass to it when invoked. The type parameter, T, is the return type of the private method.
Parameters
methodName - a Symbol representing the name of the private method to invoke
Throws
NullPointerException - if methodName is null
Method Summary
def apply (args : Any*) : Invocation[T]
Apply arguments to a private method. This method returns an Invocation object, ready to be passed to an invokePrivate method call. The type parameter, T, is the return type of the private method.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def apply(args : Any*) : Invocation[T]
Apply arguments to a private method. This method returns an Invocation object, ready to be passed to an invokePrivate method call. The type parameter, T, is the return type of the private method.
Parameters
args - zero to many arguments to pass to the private method when invoked
Returns
an Invocation object that can be passed to invokePrivate to invoke the private method


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