Example usage for com.liferay.portal.util LayoutTypeControllerTracker getTypes

List of usage examples for com.liferay.portal.util LayoutTypeControllerTracker getTypes

Introduction

In this page you can find the example usage for com.liferay.portal.util LayoutTypeControllerTracker getTypes.

Prototype

public static String[] getTypes() 

Source Link

Usage

From source file:com.liferay.layout.type.controller.test.LayoutTypeControllerTrackerTest.java

License:Open Source License

@Test
public void testGetTypes() {
    String[] types = LayoutTypeControllerTracker.getTypes();

    Assert.assertNotNull(types);/*from w w w  .  j  a  v  a  2s.co  m*/

    boolean found = false;

    for (String type : types) {
        if (type.equals("testLayoutTypeController")) {
            found = true;
        }
    }

    Assert.assertTrue(found);
}