aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1154474 - /aries/trunk/blueprint/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/Helper.java
Date Sat, 06 Aug 2011 10:00:12 GMT
Author: not
Date: Sat Aug  6 10:00:12 2011
New Revision: 1154474

URL: http://svn.apache.org/viewvc?rev=1154474&view=rev
Log:
ARIES-722 Add a debug method that when called will enable debug for the test run.

Modified:
    aries/trunk/blueprint/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/Helper.java

Modified: aries/trunk/blueprint/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/Helper.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/Helper.java?rev=1154474&r1=1154473&r2=1154474&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/Helper.java
(original)
+++ aries/trunk/blueprint/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/Helper.java
Sat Aug  6 10:00:12 2011
@@ -37,6 +37,8 @@ import static org.junit.Assert.assertNot
 import static org.junit.Assert.assertSame;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
+import static org.ops4j.pax.exam.CoreOptions.waitForFrameworkStartup; 
+import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.vmOption;
 
 public class Helper {
     public static BlueprintContainer getBlueprintContainerForBundle(RichBundleContext context,
String symbolicName) {
@@ -51,6 +53,10 @@ public class Helper {
         return blueprintBundles(true);
     }
     
+    public static Option[] debug(int port) {
+      return flatOptions(vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address="
+ port),waitForFrameworkStartup());
+    }
+    
     public static Option[] blueprintBundles(boolean startBlueprint) {
         return flatOptions(
                 bundles(



Mime
View raw message