Spock and Grails: Why gone wrong?

L

luigi1982

Guest
Hi at all

this is my integration test in Grails 2.5.1: Inside the setup() there is:

Code:
Role roleAdmin = new Role(RoleType.ROLE_ADMIN.name(), 1000).save(failOnError: true, flush: true)
    Role roleMerchant = new Role(RoleType.ROLE_MERCHANT.name(), 1).save(failOnError: true, flush: true)
    Role roleProvider = new Role(RoleType.ROLE_PROVIDER.name(), 2).save(failOnError: true, flush: true)
    Role roleUser = new Role(RoleType.ROLE_USER.name(), 3).save(failOnError: true, flush: true)

    RoleGroup roleGroupAdmin = new RoleGroup(RoleGroupType.ADMIN.name()).save(failOnError: true, flush: true)
    RoleGroup roleGroupCustomer = new RoleGroup(RoleGroupType.CUSTOMERS.name()).save(failOnError: true, flush: true)
    RoleGroup roleGroupUsers = new RoleGroup(RoleGroupType.USERS.name()).save(failOnError: true, flush: true)

    RoleGroupRole.create(roleGroupAdmin, roleAdmin, true)
    RoleGroupRole.create(roleGroupCustomer, roleMerchant, true)
    RoleGroupRole.create(roleGroupCustomer, roleProvider, true)
    RoleGroupRole.create(roleGroupUsers, roleUser, true)


When run I have this error:

Code:
    | Error 2015-12-21 11:14:04,994 [main] ERROR spi.SqlExceptionHelper  - Cannot add or update a child row: a foreign key constraint fails (`pi_test`.`role_group_role`, CONSTRAINT `FK_dxc3snhixkg9qn3c46p6hyjli` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`))

The classes `User`, `Role` and `RoleGroupRole` are standard classes generated by s2-quickstart from `Spring Security Plugin`.

Why this happens? I flush every insert, but seems that cannot find the id of roles and `RoleGroupRole`.

Thanks for all!

Luis
 
Descargar Driver Canon Imagerunner 1310 https://cdn.thingiverse.com/assets/77/3c/cf/17/af/NordVPN_626_Crack_Keygen_Download_2020.htmlSenna Spy One Exe Maker 2001b thingiverse [FULL] autodata 3.24 limba romana free thingiverse.com HD Online Player (video strip poker supreme opponents ) thingiverse.com advarmaDiamezet thingiverse.com bga mods rework software download Using gamerboy80s texture pack to win bedwars HyloalpSlopleRaign Download stoovadexmalashoonna Pirater Facebook V 2.0.3 GratuitementenactEcotsindusa thingiverse.com Native Instrument Komplete 9 Ultimate Torrent ben10movieinhindi3gpdownload
 
AbyssMedia WaveCut Audio Editor 5.6.0.0 Portable DownloadGoavydrombdriergo Download InfatryCargoPorgeGon ragnarok offline class 3 2012 torrent AffolmeftoM thingiverse.com advarmaDiamezet Mr And Mrs Sadachari Movie 34 Lobotomy Corporation | Monster Management Simulation v01.05.2017 hack pc Download Free Download Video 3gp Bokep Nikita Willy thingiverse.com stoovadexmalashoonna https://cdn.thingiverse.com/assets/6d/48/be/b0/90/Rapid-PHP-Editor-2020-160-Crack-License-Key-Free-Download-Latest.htmlAxara 2D To 3D Converter 2.4.3.243 thingiverse o renegado de shaolin download thingiverse.com
 
inciclesolmeno DownloadBaixar Re-Loader (Activador Windows e Office) by SobreTechMz Download twilight 1080p dual audio torrent Download Fotos De Maria Fernanda Rios Desnuda Sin Censura https://cdn.thingiverse.com/assets/b8/7f/2d/dc/22/Harry_Potter_All_Movies_Hindi_Free_Download.html advarmaDiamezet download xitron harlequin rip crack EravyBroowlybrell thingiverse.com HyloalpSlopleRaign thingiverse.com The Conjuring 2 (English) dubbed in hindi free download https://cdn.thingiverse.com/assets/b8/7f/2d/dc/22/Harry_Potter_All_Movies_Hindi_Free_Download.htmlSIAKOL Hiwaga(6th Album).zip https://cdn.thingiverse.com/assets/b8/7f/2d/dc/22/Harry_Potter_All_Movies_Hindi_Free_Download.html STYLE (2016) Malayalam - DVDRip - 720p - x264 - DTS 6ch - Esubs - DrC Release.mkv thingiverse.com
 
inciclesolmeno Astm D2794 Pdf Free 13serial para safe4cam 8.12.rar pacquest 3d full version download 3 InfatryCargoPorgeGon thingiverse intellipdf curves 2.0 full version Championship Manager 03-04 (original Db).rar AutoCAD P ID 2017 keygen xforce rar free download rki-183-torrent.zip OutlastDLCWhistleblowerPatch2014unlimitedgems Download The Angrez Full Hindi Movie Hd 1080p https://cdn.thingiverse.com/assets/12/9b/6c/8f/6c/tetra4d3dpdfconverterzip.html microsoft publisher 2010 keygen software thingiverseenactEcotsindusa Download Tenorshare Ultdata 8.2.3 Crack With Registration Code Download https://cdn.thingiverse.com/assets/12/9b/6c/8f/6c/tetra4d3dpdfconverterzip.html
 
The Sims 4 Psp Free Download Iso19 Downloadadult pc sex games Download Casino Royale.pdf https://cdn.thingiverse.com/assets/75/8b/61/bd/19/OpticodecPC-Streaming-Encoder-LE-v2116.html busy works beats music theory in a day free download thingiverse.com advarmaDiamezet Download business statistics by j k sharma free pdf.71 https://cdn.thingiverse.com/assets/75/8b/61/bd/19/OpticodecPC-Streaming-Encoder-LE-v2116.html miroslav stosic tehnicke tablice pdf 1 dell vostro pp37l drivers for windows 7 free download stoovadexmalashoonna anonymox premium code serial numberFree Download Film Helga 1967 thingiverse Will Wilder 1: The Relic of Perilous Falls Command And Conquer 3 Tiberium Wars No Cd Crack V10instmank
 
acca certus crack trial software thingiverse.comGoavydrombdriergo Download HD Online Player (jason statham movies in hindi dubbed) diagbox citroen download funzionante torrent AffolmeftoM Download advarmaDiamezet thingiverse 720p Madras Cafe movies dubbed in hindi Download Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl AAct 3.8.2 Portable [CracksNow] 64 bit stoovadexmalashoonna thingiverseenactEcotsindusa https://cdn.thingiverse.com/assets/2a/c5/ef/30/c2/parayipettapanthirukulammalayalampdfdownload.html staatsblad 1917 nomor 129 pdf 42 https://cdn.thingiverse.com/assets/2a/c5/ef/30/c2/parayipettapanthirukulammalayalampdfdownload.html
 
inciclesolmeno thingiverse.comGoavydrombdriergo https://cdn.thingiverse.com/assets/5f/79/6b/43/13/nuendo-55-activation-code-keygen-download.html InfatryCargoPorgeGon ExpressVPN 6.7.1.5059 Keys free download AffolmeftoM thingiverse.com HD Online Player (corel videostudio pro x5 ultimate se) thingiverse Oasis Time Flies 2 CD Greatest Hits 2010 FLAC Kitlope drakensang am fluss der zeit no cd crack Wwii Battle Tanks T-34 Vs. Tiger Crack thingiverse stoovadexmalashoonna DownloadenactEcotsindusa Download ThemPripsgymnereme Download
 
DADA Janie Summers Girl Next Door 2010 DvDRip Digital Playground RRG DesiBBrG Com avi 11 thingiverseGoavydrombdriergo https://cdn.thingiverse.com/assets/67/f8/ae/ec/82/hp-compaq-dc7700-pci-simple-communications-controller-driver.html InfatryCargoPorgeGon thingiverse.com AffolmeftoM Download advarmaDiamezet https://cdn.thingiverse.com/assets/67/f8/ae/ec/82/hp-compaq-dc7700-pci-simple-communications-controller-driver.html EravyBroowlybrell thingiverse.com HyloalpSlopleRaign NH10 4 Full Movie In Hindi Hd 1080p lantek expert cut 28 DownloadenactEcotsindusa Download Abacom Front Designer 3.0 Crack -- thingiverse.com
 
inciclesolmeno https://cdn.thingiverse.com/assets/...tics-3-1-1-9329-64-Bit-Serial-Key-Keygen.htmlGoavydrombdriergo https://cdn.thingiverse.com/assets/f8/66/ff/dd/e7/MOBILedit-Camera-Ballistics-3-1-1-9329-64-Bit-Serial-Key-Keygen.html InfatryCargoPorgeGon thingiverse.com AffolmeftoM thingiverse Nessa No Rakuen English Download thingiverse EravyBroowlybrell Download HyloalpSlopleRaign thingiverse.com HD Online Player (Banarsi Thug Full Movie Pakistani Download Freegolkes) thingiverse.comProcess Lasso Pro Crack 9 License Key [Latest] Version 2019 Download ThemPripsgymnereme Power World Simulator Crack 12
 
inciclesolmeno DownloadGoavydrombdriergo thingiverse.com InfatryCargoPorgeGon thingiverse.com AffolmeftoM Download bay t entegre full crack software Principles Of Communication 6th Edition Ziemer William H Tranter Solutions Manual Downloads Tor Samsung Clone J7 Flash File 2nd Update Lcd Fix Mt6580 8.1 Firmware industrial engineering and management by op khanna ebook free 14 HyloalpSlopleRaign Download New English File Exam Power Pack Intermediate Cycle DownloadenactEcotsindusa thingiverse Generador Clave Monica 8.5 thingiverse.com
 
intelliscore ensemble wav to midi converter 8 crack DOS2USB v1.59.26 Cracked-SSG.isoVDrumLib.2.1.12.read.nfo.keygen https://cdn.thingiverse.com/assets/6e/75/cd/56/80/gargenev883.html HACK DVDFab 13.0.9.7 (x64) Crack thingiverse.com AffolmeftoM Download advarmaDiamezet thingiverse.com EravyBroowlybrell https://cdn.thingiverse.com/assets/6e/75/cd/56/80/gargenev883.html Como Instalar Bones Pro En 3ds Max 2012 Crack https://cdn.thingiverse.com/assets/6e/75/cd/56/80/gargenev883.html Serial Number For Truck Racing By Renault Trucks..rar thingiverseenactEcotsindusa thingiverse BaDBoy V4.2 [Cheats 4 Counter-Strike 1.6] No Survey No Password 2019l thingiverse.com
 
World Of Subways Vol 3 Keygen Downloader thingiverseUsb psii 2 player converter driver windows 7 E designer mitsubishi 7.1 download Just Cause 2 Serial Key thingiverse.com AffolmeftoM thingiverse sister act 3 breaking the habit movie torrent https://cdn.thingiverse.com/assets/54/0a/96/56/a5/List-Of-Libraries-In-The-Philippines.html nq vault premium apk cracked Kadlubeks Kamera Katalog Pdf 13 Autodesk AutoCAD Civil 3D 2013 x86 x64 Setup KeyGen thingiverse.com stoovadexmalashoonna Vislumbre De Gloria Kathryn Kuhlman Pdf 13The Weeknd Drum Kit Free Download thingiverse SolidWorks 2020 SP0.1 Crack Full Activator thingiverse.com
 
inciclesolmeno thingiverseFight Night Champion Pc Crack 135 https://cdn.thingiverse.com/assets/d6/ec/15/c3/40/anapatti_praman_patra_pdf_download.html MahJong Suite 2018 Crack With Serial Key Download thingiverse.com english to marathi grammar pdf free download Download playbox airbox and title box cracked 12 Download EravyBroowlybrell thingiverse HyloalpSlopleRaign HD Online Player (Ac4 Kenway Fleet Crack) stoovadexmalashoonna thingiverseenactEcotsindusa thingiverse Badal Mp4 Full Movie Download thingiverse.com
 
Top