Changeset 1478 for trunk/test


Ignore:
Timestamp:
Feb 2, 2011, 1:52:01 PM (10 years ago)
Author:
s.h.sikkema@…
Message:

Made StudySearchTests? succeed while still being able to manually inject moduleCommunicationService

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/dbnp/query/StudySearchTests.groovy

    r1473 r1478  
    44import grails.test.*
    55import org.dbnp.gdt.AssayModule
     6import org.codehaus.groovy.grails.commons.ApplicationHolder
    67
    78/**
     
    4849                samples.each { it.parent.addToSamples( it ); }
    4950                assays.each { it.parent.addToAssays( it ); }
     51
     52        // some mocks to make sure test doesn't break on finding 'moduleCommunicationService'
     53        ApplicationHolder.metaClass.static.getApplication = { [getMainContext: { [getBean: {a -> null}] }] }
    5054               
    5155    }
Note: See TracChangeset for help on using the changeset viewer.