Changeset 1384


Ignore:
Timestamp:
Jan 12, 2011, 10:00:59 PM (12 years ago)
Author:
business@…
Message:

added webtest plugin and first (working) webtest, renamed 'test' configuration to 'nmcdsptest' to avoid conflicts with grails default test environment

Location:
trunk
Files:
5 added
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/application.properties

    r1382 r1384  
    11#Grails Metadata file
    2 #Wed Jan 12 17:31:11 CET 2011
     2#Wed Jan 12 18:46:36 CET 2011
    33app.build.display.info=0
    44app.build.svn.revision=1079
     
    2323plugins.tomcat=1.3.6
    2424plugins.webflow=1.3.6
     25plugins.webtest=3.0.1
  • trunk/grails-app/conf/BootStrap.groovy

    r1247 r1384  
    6060                //      - ontologies
    6161                //      - and/or studies
    62                 if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT || grails.util.GrailsUtil.environment == "dbnpdemo") {
     62                if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT || grails.util.GrailsUtil.environment == GrailsApplication.ENV_TEST || grails.util.GrailsUtil.environment == "dbnpdemo") {
    6363                        // add ontologies?
    6464                        if (!Ontology.count()) BootStrapTemplates.initTemplateOntologies()
  • trunk/grails-app/controllers/HomeController.groovy

    r1242 r1384  
    11import dbnp.studycapturing.Study
    22import dbnp.studycapturing.Template
     3import org.codehaus.groovy.grails.commons.GrailsApplication
    34
    45/**
     
    1819class HomeController {
    1920    def index = {
    20             if (!Template.count()) {
     21            if (!Template.count() && grails.util.GrailsUtil.environment != GrailsApplication.ENV_TEST) {
    2122                    redirect(controller:'setup',action:'index')             
    2223            } else {
Note: See TracChangeset for help on using the changeset viewer.