From: LAW A. <and...@ro...> - 2010-10-08 14:55:16
|
OK. I'm further down the line and I'm 95% certain that my problem lies within the dbunit-maven-plugin which - in my hands - does nothing. Are the plugin maintainers on this list or is there somewhere else that I should go and hassle them? On 7 Oct 2010, at 19:07, Jeff Jensen wrote: > It has nothing to do with Maven. It's configuring your application > with logging - Log4j, Logback, java.util.logging (JUL), etc. > > It is very easy. As I asked in the first email reply, what is the > logging framework used by the app? If the answer is none, then it's > time to configure one - an extra 10 mins (an hour if you've never done > it to read the config section of the docs and configure Maven deps). > If it already has one, then you have 1 minute needed to open the > config file, add the line similar to the one I provided below, save, > and run the tests. > > > On Thu, Oct 7, 2010 at 11:39 AM, LAW Andrew <and...@ro...> wrote: >> Jeff, >> >> Thanks for the rapid response. >> >> Ahhh. Logging facades! >> >> I confess to never having fully got the hang of those. And trying to work out where to configure what when dealing with a "life-cycle" phase bound to a maven plugin goal may well prove to be several steps too far for me to cope with :o{ >> >> Anyone out there got a working maven-based dbunit logging example that they'd care to share? Or is it a long session with the anti-depressants until I randomly get something working? >> >> >> >> On 7 Oct 2010, at 17:05, Jeff Jensen wrote: >> >>> Hmm, yes, I see no info on the dbUnit site for your question :-( >>> >>> What logging facility does the app use? dbUnit's logging facility >>> uses SLF4J. The easiest way is to add a logger for dbUnit to the >>> app's logging config, e.g. for Logback: >>> <logger name="org.dbunit" level="DEBUG" /> >>> >>> Then, dbUnit logging messages route to the destinations configured by the app. >>> >>> >>> >>> On Thu, Oct 7, 2010 at 9:48 AM, LAW Andrew <and...@ro...> wrote: >>>> All, >>>> >>>> I'm just starting to try to get to grips with dbunit. I have a database setup, an xml file, a maven project in NetBeans and a set of plugin configurations. >>>> >>>> I can compile code and - presumably - trigger the dbunit operation to do a CLEAN_INSERT. I was expecting there to be data in the relevant tables after I had run that process. Sadly there are none. >>>> >>>> So I'm trying to work out what (if anything) is going wrong. How can I get some verbose output from dbunit either into a log file or to the console so that I can see where the process is falling down. >>>> >>>> I could not find anything on the website or in the documents that I read. That's not to say that the answer is not out there - I may just have missed it in which case I apologise. >>>> >>>> Thanks in advance for any help that anyone can provide. >>>> >>>> Later, >>>> >>>> Andy >>>> -------- >>>> Yada, yada, yada... >>>> >>>> The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336 >>>> Disclaimer: This e-mail and any attachments are confidential and intended solely for the use of the recipient(s) to whom they are addressed. If you have received it in error, please destroy all copies and inform the sender. >>>> >>>> >>>> -- >>>> The University of Edinburgh is a charitable body, registered in >>>> Scotland, with registration number SC005336. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Beautiful is writing same markup. Internet Explorer 9 supports >>>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>>> Spend less time writing and rewriting code and more time creating great >>>> experiences on the web. Be a part of the beta today. >>>> http://p.sf.net/sfu/beautyoftheweb >>>> _______________________________________________ >>>> dbunit-user mailing list >>>> dbu...@li... >>>> https://lists.sourceforge.net/lists/listinfo/dbunit-user >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Beautiful is writing same markup. Internet Explorer 9 supports >>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >>> Spend less time writing and rewriting code and more time creating great >>> experiences on the web. Be a part of the beta today. >>> http://p.sf.net/sfu/beautyoftheweb >>> _______________________________________________ >>> dbunit-user mailing list >>> dbu...@li... >>> https://lists.sourceforge.net/lists/listinfo/dbunit-user >> >> Later, >> >> Andy >> -------- >> Yada, yada, yada... >> >> The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336 >> Disclaimer: This e-mail and any attachments are confidential and intended solely for the use of the recipient(s) to whom they are addressed. If you have received it in error, please destroy all copies and inform the sender. >> >> >> -- >> The University of Edinburgh is a charitable body, registered in >> Scotland, with registration number SC005336. >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> _______________________________________________ >> dbunit-user mailing list >> dbu...@li... >> https://lists.sourceforge.net/lists/listinfo/dbunit-user >> >> > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > dbunit-user mailing list > dbu...@li... > https://lists.sourceforge.net/lists/listinfo/dbunit-user Later, Andy -------- Yada, yada, yada... The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336 Disclaimer: This e-mail and any attachments are confidential and intended solely for the use of the recipient(s) to whom they are addressed. If you have received it in error, please destroy all copies and inform the sender. -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |