Liferay 7.0-ce-b4

com.liferay.portal.test.rule
Class SyntheticBundleRule

java.lang.Object
  extended by com.liferay.portal.kernel.test.rule.BaseTestRule<Long,Long>
      extended by com.liferay.portal.test.rule.SyntheticBundleRule
All Implemented Interfaces:
ArquillianClassRuleHandler, org.junit.rules.TestRule

public class SyntheticBundleRule
extends BaseTestRule<Long,Long>

Creates and installs a bundle from the named sub-package of a test class.

For example, if the test class is bar.FooTest, invoking new SyntheticBundleRule("fee") on FooTest creates a bundle of the contents of the bar.fee package. This sub-package should also contain a bnd.bnd file that describes the bundle. When writing the bnd file, you can use the ${bundle.package} property to simplify the contents of the file.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.test.rule.BaseTestRule
BaseTestRule.StatementWrapper
 
Constructor Summary
SyntheticBundleRule(String bundlePackage)
           
 
Method Summary
 
Methods inherited from class com.liferay.portal.kernel.test.rule.BaseTestRule
apply, handleAfterClass, handleBeforeClass, inspectTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntheticBundleRule

public SyntheticBundleRule(String bundlePackage)

Liferay 7.0-ce-b4