MockObjects should implement Verifiable
Brought to you by:
ivan_r_moore,
mpcooke3
The com.mockobjects package defines an interface
called verifyable. This interface defines the verify()
method.
MockObjects should declare to implement this interface.
This would allow to create Mockobjects and put them
into a list and then iterate through the mockobject list to
verify each of hte mockobjects.
Logged In: NO
Sorry forgot to include the patch
The file involved is
RealCodeWriter.java:
Method writeClassDeclarations():
change
writer.println("\npublic class "+className+"
implements "+interfaceName+"{");
to
writer.println("\npublic class "+className+"
implements "+interfaceName+", Verifiable {");
Method writeSubClassDeclarations()
change
writer.println("\npublic class "+className+"
extends "+superclassName+"{");
to
writer.println("\npublic class "+className+"
extends "+superclassName+ " implements Verifiable {");