org.spockframework.mock
Class ConstantResultGenerator

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

public class ConstantResultGenerator
extends Object
implements IResultGenerator

Author:
Peter Niederwieser

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

Constructor Detail

ConstantResultGenerator

public ConstantResultGenerator(Object constant)
Method Detail

generate

public Object generate(IMockInvocation invocation)
Specified by:
generate in interface IResultGenerator


Copyright © 2010. All Rights Reserved.