Hi Sean, On Fri, May 24, 2013 at 6:46 AM, Sean Steimer <[email protected]> wrote: > Is there anyway to extend the ServerSideTestsCase class > in org.apache.sling.testing.samples.integrationtests? From what I can > tell, the module doesn't build or deploy a tests jar, which means if you > want to extend this class from another module or project, you're forced to > copy and paste the class, which seems like an unnecessary burden to me...
That's correct - I wrote that class as an example, thinking that people would want to add their own custom stuff anyway. Basically, the only additional functionality w.r.t SlingTestBase is checking that the junit servlet is ready...maybe that functionality (check a series of URLs for expected results) could be added to the SlingTestBase class instead. Since I wrote that stuff I've been trying to avoid base classes for providing that kind of functionality, and use utility classes instead, to avoid "polluting" the inheritance tree. It might be worth looking in that direction instead, i.e. transform SlingTestBase (keeping backwards compatibility) and the ServerSideTestsCase into composable utilities. -Bertrand
