Changeset 781


Ignore:
Timestamp:
Feb 4, 2011, 6:45:00 PM (13 years ago)
Author:
gav
Message:

All tests passing, updated CreateDataService so that it can be so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/services/CreateDataService.groovy

    r772 r781  
    33/**
    44* Provides a data service to create base and demo data.
    5 * Beware that most, if not all, base data is referenced by "Id" throughout the program.
     5* Beware that most, if not all, BASE data is referenced by "Id" throughout the program.
    66* This allows changing the text of the 'name' property to something of the same meaning.
    77* But be sure to maintain the correct Id during creation, indicated by #1, #2 etc.
     8* Task.list()[0] is used to allow integration testing with DEMO data, where Id's may change due to create-delete.
    89*/
    910class  CreateDataService {
     
    11001101        def person = Person.get(3)
    11011102
    1102         taskInstance = Task.get(5)
     1103        taskInstance = Task.list()[4]
    11031104        taskProcedureInstance = new TaskProcedure(linkedTask: taskInstance,
    11041105                                                                                    createdBy: person,
     
    11071108        taskProcedureInstance.addToTasks(taskInstance)
    11081109
    1109         taskInstance = Task.get(7)
     1110        taskInstance = Task.list()[6]
    11101111        taskProcedureInstance = new TaskProcedure(linkedTask: taskInstance,
    11111112                                                                                    createdBy: person,
Note: See TracChangeset for help on using the changeset viewer.