|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.contract.writer.XmlWriter org.kuali.student.contract.writer.JavaClassWriter org.kuali.student.mock.mojo.MockImplServiceWriter org.kuali.student.mock.mojo.ConformanceTestBaseCrudClassServiceWriter org.kuali.student.mock.mojo.ConformanceTestExtendedCrudClassServiceWriter
public class ConformanceTestExtendedCrudClassServiceWriter
This class will generate the extended class that does CRUD tests as part of the Conformance Tests for services. The generated class will complete the base class and is meant to be generated once and then edited (and mantained) by developers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.kuali.student.mock.mojo.MockImplServiceWriter |
---|
MockImplServiceWriter.MethodType |
Field Summary |
---|
Fields inherited from class org.kuali.student.mock.mojo.ConformanceTestBaseCrudClassServiceWriter |
---|
H1_COMMENT_CHAR, H1_COMMENT_MARK_LENGTH, ROOT_PACKAGE |
Fields inherited from class org.kuali.student.mock.mojo.MockImplServiceWriter |
---|
finder, methods, model, servKey |
Constructor Summary | |
---|---|
ConformanceTestExtendedCrudClassServiceWriter(ServiceContractModel model,
String directory,
String rootPackage,
String servKey,
List<ServiceMethod> methods,
boolean isR1)
|
Method Summary | |
---|---|
static String |
calcClassName(String servKey)
Given the service key (name), returns a calculated class name for the conformance tester. |
void |
write()
Write out the entire file |
void |
writetestCrudXXX_setDTOFieldsForTestCreate(String dtoObjectName,
List<MessageStructure> messageStructures)
Writes the section to set fields specific to this dto for testCreate section. |
void |
writetestCrudXXX_setDTOFieldsForTestReadAfterUpdate(String dtoObjectName,
List<MessageStructure> messageStructures)
Writes the section to set fields specific to this dto for testReadAfterUpdate sections. |
void |
writetestCrudXXX_setDTOFieldsForTestUpdate(String dtoObjectName,
List<MessageStructure> messageStructures)
Writes the section to set fields specific to this dto for testUpdate sections. |
void |
writetestCrudXXX_testDTOFieldsForTestCreateUpdate(String dtoObjectName,
List<MessageStructure> messageStructures)
Writes the section to test fields specific to this dto for testCreate and testUpdate sections. |
void |
writetestCrudXXX_testDTOFieldsForTestReadAfterUpdate(String dtoObjectName,
List<MessageStructure> messageStructures)
Writes the section to test fields specific to this dto for testReadAfterUpdate sections. |
Methods inherited from class org.kuali.student.mock.mojo.MockImplServiceWriter |
---|
calcMethodType, calcObjectName, calcServiceInterfaceClassName, fixServKey, initLower |
Methods inherited from class org.kuali.student.contract.writer.JavaClassWriter |
---|
closeBrace, getBody, getClassName, getDirectory, getFileName, getPackageName, getRootDirectory, importsAdd, indentPrintWrappedComment, openBrace, setPackageName, writeHeader, writeImports, writeJavaClassAndImportsOutToFile |
Methods inherited from class org.kuali.student.contract.writer.XmlWriter |
---|
decrementIndent, escapeXML, getIndent, getOut, incrementIndent, indent, indent, indentPrint, indentPrintln, print, println, setIndent, setOut, writeAttribute, writeComment, writeCommentBox, writeTag, writeTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConformanceTestExtendedCrudClassServiceWriter(ServiceContractModel model, String directory, String rootPackage, String servKey, List<ServiceMethod> methods, boolean isR1)
Method Detail |
---|
public static String calcClassName(String servKey)
public void write()
write
in class ConformanceTestBaseCrudClassServiceWriter
public void writetestCrudXXX_setDTOFieldsForTestCreate(String dtoObjectName, List<MessageStructure> messageStructures)
writetestCrudXXX_setDTOFieldsForTestCreate
in class ConformanceTestBaseCrudClassServiceWriter
public void writetestCrudXXX_testDTOFieldsForTestCreateUpdate(String dtoObjectName, List<MessageStructure> messageStructures)
writetestCrudXXX_testDTOFieldsForTestCreateUpdate
in class ConformanceTestBaseCrudClassServiceWriter
public void writetestCrudXXX_setDTOFieldsForTestUpdate(String dtoObjectName, List<MessageStructure> messageStructures)
writetestCrudXXX_setDTOFieldsForTestUpdate
in class ConformanceTestBaseCrudClassServiceWriter
public void writetestCrudXXX_testDTOFieldsForTestReadAfterUpdate(String dtoObjectName, List<MessageStructure> messageStructures)
writetestCrudXXX_testDTOFieldsForTestReadAfterUpdate
in class ConformanceTestBaseCrudClassServiceWriter
public void writetestCrudXXX_setDTOFieldsForTestReadAfterUpdate(String dtoObjectName, List<MessageStructure> messageStructures)
writetestCrudXXX_setDTOFieldsForTestReadAfterUpdate
in class ConformanceTestBaseCrudClassServiceWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |