killbill-aplcache

RE-add beatrix ruby test archive (deleted by mistake) Disable

7/13/2013 12:04:48 AM

Details

diff --git a/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyNotificationPlugin.java b/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyNotificationPlugin.java
index 0fc051d..d30bea2 100644
--- a/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyNotificationPlugin.java
+++ b/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyNotificationPlugin.java
@@ -34,7 +34,7 @@ public class TestJrubyNotificationPlugin extends TestOSGIBase {
     private final String BUNDLE_TEST_RESOURCE_PREFIX = "killbill-notification-test";
     private final String BUNDLE_TEST_RESOURCE = BUNDLE_TEST_RESOURCE_PREFIX + ".tar.gz";
 
-    @BeforeClass(groups = "slow", enabled = true)
+    @BeforeClass(groups = "slow", enabled = false)
     public void beforeClass() throws Exception {
 
         // OSGIDataSourceConfig
@@ -47,7 +47,7 @@ public class TestJrubyNotificationPlugin extends TestOSGIBase {
         setupTest.setupJrubyBundle();
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testOnEventForAccountCreation() throws Exception {
 
         // Once we create the account we give the hand to the jruby notification plugin
diff --git a/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyPaymentPlugin.java b/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyPaymentPlugin.java
index 20396bc..3ce55fc 100644
--- a/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyPaymentPlugin.java
+++ b/beatrix/src/test/java/com/ning/billing/beatrix/integration/osgi/TestJrubyPaymentPlugin.java
@@ -52,7 +52,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
     @Inject
     private OSGIServiceRegistration<PaymentPluginApi> paymentPluginApiOSGIServiceRegistration;
 
-    @BeforeClass(groups = "slow")
+    @BeforeClass(groups = "slow", enabled=false)
     public void beforeClass() throws Exception {
 
 
@@ -67,7 +67,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
 
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testProcessPayment() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
@@ -92,7 +92,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
         assertEquals(res.getStatus(), PaymentPluginStatus.PROCESSED);
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testGetPaymentInfo() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
@@ -116,7 +116,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
     }
 
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testProcessRefund() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
@@ -139,7 +139,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
         assertEquals(res.getStatus(), RefundPluginStatus.PROCESSED);
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testAddPaymentMethod() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
@@ -151,14 +151,14 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
     }
 
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testDeletePaymentMethod() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
         api.deletePaymentMethod(UUID.randomUUID(), UUID.randomUUID(), callContext);
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testGetPaymentMethodDetail() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
@@ -173,7 +173,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
         assertEquals(res.getProperties().get(1).getValue(), "value2");
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testSetDefaultPaymentMethod() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
@@ -181,7 +181,7 @@ public class TestJrubyPaymentPlugin extends TestOSGIBase {
         api.setDefaultPaymentMethod(UUID.randomUUID(), UUID.randomUUID(), callContext);
     }
 
-    @Test(groups = "slow", enabled = true)
+    @Test(groups = "slow", enabled = false)
     public void testGetPaymentMethods() throws Exception {
 
         PaymentPluginApi api = getTestPluginPaymentApi();
diff --git a/beatrix/src/test/resources/killbill-notification-test.tar.gz b/beatrix/src/test/resources/killbill-notification-test.tar.gz
new file mode 100644
index 0000000..c193adc
Binary files /dev/null and b/beatrix/src/test/resources/killbill-notification-test.tar.gz differ
diff --git a/beatrix/src/test/resources/killbill-payment-test.tar.gz b/beatrix/src/test/resources/killbill-payment-test.tar.gz
new file mode 100644
index 0000000..44a4634
Binary files /dev/null and b/beatrix/src/test/resources/killbill-payment-test.tar.gz differ