From jboss-osgi-commits at lists.jboss.org Wed Jun 3 13:49:30 2009 Content-Type: multipart/mixed; boundary="===============8732915980028521623==" MIME-Version: 1.0 From: jboss-osgi-commits at lists.jboss.org To: jboss-osgi-commits at lists.jboss.org Subject: [jboss-osgi-commits] JBoss-OSGI SVN: r89753 - in projects/jboss-osgi/trunk: docbook/en/modules and 1 other directory. Date: Wed, 03 Jun 2009 13:40:20 -0400 Message-ID: --===============8732915980028521623== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: thomas.diesler(a)jboss.com Date: 2009-06-03 13:40:20 -0400 (Wed, 03 Jun 2009) New Revision: 89753 Modified: projects/jboss-osgi/trunk/docbook/en/modules/ch060-husky-testing.xml projects/jboss-osgi/trunk/pom.xml Log: husky design - done Modified: projects/jboss-osgi/trunk/docbook/en/modules/ch060-husky-testing.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- projects/jboss-osgi/trunk/docbook/en/modules/ch060-husky-testing.xml 20= 09-06-03 17:28:46 UTC (rev 89752) +++ projects/jboss-osgi/trunk/docbook/en/modules/ch060-husky-testing.xml 20= 09-06-03 17:40:20 UTC (rev 89753) @@ -8,7 +8,12 @@ = Overview = - For JBoss OSGi I was looking for ways to test bundles that are d= eployed to a remote instance of the = + JBoss OSGi Husky is a OSGi Test Framework that allows you to run= plain JUnit4 test cases from within an OSGi Framework. + That the test is actually executed in the the OSGi Framework is transp= arent to your test case. There is no requirement to extend = + a specific base class nor do you need a special test runner. Your OSGi= tests execute along side with all your other (non OSGi specific) + test cases in Maven, Ant, or Eclipse. + = + Some time ago I was looking for ways to test bundles that are de= ployed to a remote instance of the = JBoss OSGi Runtime. I wanted the = solution to also work with an OSGi Framework = that is bootstrapped from within a JUnit test case. = @@ -47,8 +52,8 @@ = Architecture = - JBoss OSGi Husky is a OSGi test framework that can be installed = in any OSGi Runtime. It comes with pluggable a = - test invocation layer suitable for in process and remote test method i= nvocations. + JBoss OSGi Husky has client side interceptor that fields the tes= t request to an embedded/remote OSGi Framework where the = + test case is then actually executed. = @@ -58,6 +63,24 @@ = Here is how it works = + + A Bridge intercepts a test and delegates the execution to = the same (or another) test in and isolated test environment. = + An isolated test environment is one that does not have the same clas= s loading space as the test itself. + = + A Bridge is associated with an Invoker. Invokers may be ar= bitarily complex. Local 'in proccess' = + invokers are possible just as well as remote invokers. + = + The Invoker sends the Request to a Connector in the isolat= ed test environment. + = + A Connector has associated PackageListeners that are respo= nsible for processing test cases for their + respective test packages. + = + A PackageListeners delegates the Request to a test Runner,= typicaly this would be a JUnit runner. + = + The Runner returns a Result, which the Connector returns t= o the Invoker. + = + The Bridge finally translates potential Failures that may = be contained in the Result, to test failures on the client side. + = = Modified: projects/jboss-osgi/trunk/pom.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- projects/jboss-osgi/trunk/pom.xml 2009-06-03 17:28:46 UTC (rev 89752) +++ projects/jboss-osgi/trunk/pom.xml 2009-06-03 17:40:20 UTC (rev 89753) @@ -379,6 +379,17 @@ false + + snapshots.jboss.org + JBoss Snapshots Repository + http://snapshots.jboss.org/maven2/ + + false + + + true + + = --===============8732915980028521623==--