Example usage for com.liferay.portal.kernel.cache CacheRegistryUtil isActive

List of usage examples for com.liferay.portal.kernel.cache CacheRegistryUtil isActive

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.cache CacheRegistryUtil isActive.

Prototype

public static boolean isActive() 

Source Link

Usage

From source file:com.liferay.asset.publisher.upgrade.v1_0_0.test.UpgradePortletPreferencesTest.java

License:Open Source License

@Before
public void setUp() throws Exception {
    _active = CacheRegistryUtil.isActive();

    _group = GroupTestUtil.addGroup();//from  ww  w. j  a  v  a 2  s  .  c o m

    _layout = LayoutTestUtil.addLayout(_group);

    CacheRegistryUtil.setActive(false);

    setUpDateFormatFactories();
    setUpUpgradePortletPreferences();
}

From source file:com.liferay.ratings.verify.test.VerifyRatingsTest.java

License:Open Source License

@Before
@Override// w ww. j av  a 2  s.  c om
public void setUp() throws Exception {
    super.setUp();

    _active = CacheRegistryUtil.isActive();

    CacheRegistryUtil.setActive(false);

    _ratingsStats = RatingsTestUtil.addStats(_CLASS_NAME, _CLASS_PK);
}