I can't for the life of me find any reference to doing this or any mock classes to accomplish it. Does anyone have pointers or suggestions? I took a good stab at it but am stymied by my lack of understanding of groovy and of how artifactory loads and calls plugins.
I'm very familiar with java and mocking containers for JNDI lookups, etc but just learning groovy. I've gotten as far as knowing I probably need to have my script be wrapped by a mock plugin implementing the one from the artifactory-papi. I have a mock item info to pass to the storage.afterCreate closure and have browsed around and think eventually I'll need a mock repository and associated data objects to complete the mock environment. I really wish there was a org.artifactory.test.mock package... ;) I would like to do stand alone unit testing of all my artifactory user plugins during development. How do people usually do TDD in artifactory plugin development? Sorry for the general question - I spent an inordinate amount of time googling and searching this list for an answer. ( eclipse luna, junit ) -- View this message in context: http://forums.jfrog.org/Unit-testing-plugins-tp7580064.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
