Changeset 1525 for trunk/test


Ignore:
Timestamp:
Feb 15, 2011, 5:12:25 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • Importer tests on hold due to missing parse() method in Template domain
  • ImportMappings? and MappingColumns? are now persisted and can be loaded, todo: null-entities? and lazy loading issue
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/integration/gscf/ImporterTests.groovy

    r1522 r1525  
    44import org.springframework.core.io.*
    55import grails.converters.*
     6import dbnp.authentication.*
     7import org.dbnp.gdt.*
    68
    79/**
     
    4042    */
    4143    void testImportExcelAndXMLTemplateStudy() {
    42         def xml
     44        def xmltemplate
     45        def user = SecUser.findByUsername( "user" );
    4346       
    4447        // Load the files from a subfolder in the integration test folder and setup input streams
     
    5962        // Parse XML
    6063                try {
    61                         xml = XML.parse(fisXML, "UTF-8")
     64                        xmltemplate = XML.parse(fisXML, "UTF-8")
    6265                } catch( Exception e ) {
    6366                        println "Parsing failed" + e
    6467                }
    6568
    66         assert xml
    67        
     69        assert xmltemplate
     70
     71        xmltemplate.template.each {
     72            println it
     73        }
     74
     75        // Parse the XML template
     76        def t = Template.parse(xmltemplate.template, user);
     77
     78        assert t
    6879    }
    6980}
Note: See TracChangeset for help on using the changeset viewer.