org.spockframework.mock
Class ConstantResultGenerator

java.lang.Object
  extended by org.spockframework.mock.SingleResultGenerator
      extended by org.spockframework.mock.ConstantResultGenerator
All Implemented Interfaces:
IResultGenerator

public class ConstantResultGenerator
extends SingleResultGenerator

Author:
Peter Niederwieser

Constructor Summary
ConstantResultGenerator(java.lang.Object constant)
           
 
Method Summary
 java.lang.Object generateSingle(IMockInvocation invocation)
           
 
Methods inherited from class org.spockframework.mock.SingleResultGenerator
generate, isExhausted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantResultGenerator

public ConstantResultGenerator(java.lang.Object constant)
Method Detail

generateSingle

public java.lang.Object generateSingle(IMockInvocation invocation)
Specified by:
generateSingle in class SingleResultGenerator


Copyright © 2013. All rights reserved