Re: integration tests as .jsp or inside osgi bundle?

2012-01-27 Thread Justin Edelson
Sam- Regardless of whether it is a JSP or Servlet, the correct way to handle this is to create a node with a sling:resourceType property. Your JSP or Servlet should be associated with that resource type. If you need to secure the content, secure the content, but that's an orthogonal concern to the

Re: integration tests as .jsp or inside osgi bundle?

2012-01-27 Thread Bertrand Delacretaz
On Fri, Jan 27, 2012 at 9:24 PM, sam ” wrote: > http://sling.apache.org/site/sling-testing-tools.html > This is what I needed. > > One thing is that  I want to put my Test classes under src/test/,  not > src/main/ For test classes that are embedded in the bundle and run server-side with those

Re: integration tests as .jsp or inside osgi bundle?

2012-01-27 Thread sam ”
http://sling.apache.org/site/sling-testing-tools.html This is what I needed. One thing is that I want to put my Test classes under src/test/, not src/main/. But, I don't know how to configure maven-bundle-plugin so that some of classes under src/test/ to be copied to the bundle .jar. Is there

integration tests as .jsp or inside osgi bundle?

2012-01-27 Thread sam ”
Hey, I have a test script that will make a series of HTTP requests to Sling. I need to write servlets that will handle the requests. I can either use jsp (/apps/tests/test1/json.jsp, for example). Or, I can write a @Service that implements Servlet interface. Good thing about writing .jsp to the r

Re: Edit mode for Sublime Text 2

2012-01-27 Thread Felix Meschberger
Hi, That's great indeed !! Maybe we should link to that from the site ? What page would be suitable for the link ? Regards Felix Am 27.01.2012 um 13:57 schrieb Balazs Toth: > Hi, > > wanted to mention that I created an edit mode/background syntax highlight > extension for Sublime Text 2 (pro

Edit mode for Sublime Text 2

2012-01-27 Thread Balazs Toth
Hi, wanted to mention that I created an edit mode/background syntax highlight extension for Sublime Text 2 (probably works with Text Mate, too) and it proved to be quite handly in daily work with ESP files. Actually seeing which script chunk runs where spares some brain power... I don't know how y