deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1623450 - /deltaspike/site/trunk/content/test-control.mdtext
Date Mon, 08 Sep 2014 17:54:05 GMT
Author: gpetracek
Date: Mon Sep  8 17:54:04 2014
New Revision: 1623450

URL: http://svn.apache.org/r1623450
Log:
updated content

Modified:
    deltaspike/site/trunk/content/test-control.mdtext

Modified: deltaspike/site/trunk/content/test-control.mdtext
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/test-control.mdtext?rev=1623450&r1=1623449&r2=1623450&view=diff
==============================================================================
--- deltaspike/site/trunk/content/test-control.mdtext (original)
+++ deltaspike/site/trunk/content/test-control.mdtext Mon Sep  8 17:54:04 2014
@@ -335,6 +335,27 @@ However, if you need to add e.g. a test 
         //...
     }
 
+# Known Restrictions
+
+## Liquibase
+
+Liquibase invokes `#toString` in a `AfterDeploymentValidation` observer.
+**that isn't portable** and therefore you have to deactivate the mocking-support via:
+
+    :::java
+    public class LiquibaseAwareClassDeactivator implements ClassDeactivator {
+        @Override
+        public Boolean isActivated(Class<? extends Deactivatable> targetClass) {
+            return !"org.apache.deltaspike.testcontrol.impl.mock.MockExtension".equals(targetClass.getName());
+        }
+    }
+
++ add `LiquibaseAwareClassDeactivator` to /META-INF/apache-deltaspike.properties - e.g.:
+
+    :::
+    org.apache.deltaspike.core.spi.activation.ClassDeactivator=myPackage.LiquibaseAwareClassDeactivator
+
+Further details are available at <a href="spi.html#deactivatable">deactivatable</a>.
 
 # SPI
 



Mime
View raw message