TeamDewberry/jmxdatamart — pull request #41 by DavidWhitlock (2013-02-23 17:36:42+00:00)
Title: Automated test for issue 31

I added an automated test that reproduces https://github.com/TeamDewberry/jmxdatamart/issues/31

It's possible that I don't have all of the changes from TeamDewberry/master in my DavidWhitlock/master branch, but I'm pretty sure I've got everything. And just to make sure that it's not my local environment at fault, I ran a buildhive build against this code:

https://buildhive.cloudbees.com/job/DavidWhitlock/job/jmxdatamart/63/console

The test failed as I expected.

https://buildhive.cloudbees.com/job/DavidWhitlock/job/jmxdatamart/org.jmxdatamart$fitnesse/63/testReport/junit/org.jmxdatamart.Extractor/ExtractionWithXmlFileIT/extractTestWebAppMXBean/

Loaded the appropriate driver
Database /scratch/jenkins/workspace/DavidWhitlock/jmxdatamart/fitnesse/target/extractTestWebAppMBeanExtrator20130223171521 is created.
type not found or user lacks privilege: STRING
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.787 sec <<< FAILURE!
17:15:22.973 [JMX Statistics Extractor] DEBUG org.jmxdatamart.Extractor.Extractor - While extracting MBeans
org.jmxdatamart.common.DBException: Something wrong in the Dynamic Bean: bean table doesn't exists!
at org.jmxdatamart.Extractor.Bean2DB.dealWithDynamicBean(Bean2DB.java:72) ~[jmx-extractor-1.0-SNAPSHOT.jar:na]
at org.jmxdatamart.Extractor.Bean2DB.export2DB(Bean2DB.java:91) ~[jmx-extractor-1.0-SNAPSHOT.jar:na]
at org.jmxdatamart.Extractor.Extractor.extract(Extractor.java:103) ~[jmx-extractor-1.0-SNAPSHOT.jar:na]
at org.jmxdatamart.Extractor.Extractor$Extract.run(Extractor.java:141) ~[jmx-extractor-1.0-SNAPSHOT.jar:na]
at java.util.TimerThread.mainLoop(Timer.java:512) [na:1.6.0_30]
at java.util.TimerThread.run(Timer.java:462) [na:1.6.0_30]

Please pull these changes into the "fix-issue-31" branch for fixing this defect and make sure that it reproduces for you.

Thanks,

Dave