Changeset 1478
- Timestamp:
- Feb 2, 2011, 1:52:01 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/groovy/dbnp/query/Search.groovy
r1473 r1478 42 42 public void setResultFields( Map r ) { resultFields = r; } 43 43 44 def moduleCommunicationService45 46 44 /** 47 45 * Returns the number of results found by this search … … 208 206 return []; 209 207 210 //// Determine the moduleCommunicationService211 // ApplicationContext ctx = (ApplicationContext)ApplicationHolder.getApplication().getMainContext();212 //def moduleCommunicationService = ctx.getBean("moduleCommunicationService");208 // Determine the moduleCommunicationService 209 def ctx = ApplicationHolder.getApplication().getMainContext(); 210 def moduleCommunicationService = ctx.getBean("moduleCommunicationService"); 213 211 214 212 // Loop through all modules and check whether criteria have been given -
trunk/test/unit/dbnp/query/StudySearchTests.groovy
r1473 r1478 4 4 import grails.test.* 5 5 import org.dbnp.gdt.AssayModule 6 import org.codehaus.groovy.grails.commons.ApplicationHolder 6 7 7 8 /** … … 48 49 samples.each { it.parent.addToSamples( it ); } 49 50 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}] }] } 50 54 51 55 }
Note: See TracChangeset
for help on using the changeset viewer.