Index: trunk/grails-app/domain/com/lemans/ds/explosion/ExplosionDiagram.groovy =================================================================== diff -u -r9921 -r9925 --- trunk/grails-app/domain/com/lemans/ds/explosion/ExplosionDiagram.groovy (.../ExplosionDiagram.groovy) (revision 9921) +++ trunk/grails-app/domain/com/lemans/ds/explosion/ExplosionDiagram.groovy (.../ExplosionDiagram.groovy) (revision 9925) @@ -5,10 +5,12 @@ class ExplosionDiagram extends Auditable { Integer id + String title String jsonData Integer isActive static constraints = { + title nullable: false jsonData nullable: false isActive nullable: false } Index: trunk/src/test/groovy/com/lemans/ds/explosion/ExplosionDiagramSpec.groovy =================================================================== diff -u -r9881 -r9925 --- trunk/src/test/groovy/com/lemans/ds/explosion/ExplosionDiagramSpec.groovy (.../ExplosionDiagramSpec.groovy) (revision 9881) +++ trunk/src/test/groovy/com/lemans/ds/explosion/ExplosionDiagramSpec.groovy (.../ExplosionDiagramSpec.groovy) (revision 9925) @@ -9,7 +9,7 @@ @Override protected Object getAuditable() { explosionDiagram } - ExplosionDiagram explosionDiagram = new ExplosionDiagram(partNumber: 'b9es', displayName: 'b9es', jsonData: 'result', isActive: 1) + ExplosionDiagram explosionDiagram = new ExplosionDiagram(title: 'test', jsonData: 'result', isActive: 1) def 'can create a valid explosionDiagram'() { when: Index: trunk/src/integration-test/groovy/com/lemans/ds/explosion/ExplosionDiagramFuncSpec.groovy =================================================================== diff -u -r9921 -r9925 --- trunk/src/integration-test/groovy/com/lemans/ds/explosion/ExplosionDiagramFuncSpec.groovy (.../ExplosionDiagramFuncSpec.groovy) (revision 9921) +++ trunk/src/integration-test/groovy/com/lemans/ds/explosion/ExplosionDiagramFuncSpec.groovy (.../ExplosionDiagramFuncSpec.groovy) (revision 9925) @@ -16,7 +16,7 @@ def 'can not add explosion diagram'() { given: - Map input = [jsonData: "results:[description: 'test']"] + Map input = [title: 'test', jsonData: "results:[description: 'test']"] path() invalid() @@ -67,7 +67,7 @@ def 'can add explosionDiagram'() { given: - Map input = [jsonData: "results:[description: 'test']", isActive: 1] + Map input = [title: 'test', jsonData: "results:[description: 'test']", isActive: 1] path() ok()