|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.easymock.classextension.internal.DefaultClassInstantiator
public class DefaultClassInstantiator
Default class instantiator that is pretty limited. It just hope that the mocked class has a public empty constructor.
Constructor Summary | |
---|---|
DefaultClassInstantiator()
|
Method Summary | |
---|---|
java.lang.Object |
newInstance(java.lang.Class<?> c)
Try to instantiate a class without using a special constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClassInstantiator()
Method Detail |
---|
public java.lang.Object newInstance(java.lang.Class<?> c) throws java.lang.InstantiationException
newInstance
in interface IClassInstantiator
c
- Class to instantiate
java.lang.InstantiationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |