Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.test
Class BaseDDMServiceTestCase

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.test.BaseDDMServiceTestCase

public class BaseDDMServiceTestCase
extends Object


Field Summary
protected  DDMStructureLayoutTestHelper ddmStructureLayoutTestHelper
           
protected  DDMStructureTestHelper ddmStructureTestHelper
           
protected  Group group
           
 
Constructor Summary
BaseDDMServiceTestCase()
           
 
Method Summary
protected  DDMTemplate addDisplayTemplate(long classNameId, long classPK, long sourceClassNameId, String name, String description)
           
protected  DDMTemplate addDisplayTemplate(long classNameId, long classPK, String name)
           
protected  DDMTemplate addDisplayTemplate(long classPK, String name)
           
protected  DDMTemplate addFormTemplate(long classPK, String name)
           
protected  DDMTemplate addFormTemplate(long classPK, String name, String definition)
           
protected  DDMStructure addStructure(long parentStructureId, long classNameId, String structureKey, String name, String definition, String storageType, int type)
           
protected  DDMStructure addStructure(long parentStructureId, long classNameId, String structureKey, String name, String description, String definition, String storageType, int type)
           
protected  DDMStructure addStructure(long classNameId, String name)
           
protected  DDMStructure addStructure(long classNameId, String name, String description)
           
protected  DDMStructure addStructure(long classNameId, String structureKey, String name, String definition, String storageType, int type)
           
protected  DDMTemplate addTemplate(long classNameId, long classPK, long sourceClassNameId, String templateKey, String name, String description, String type, String mode, String language, String script)
           
protected  DDMTemplate addTemplate(long classNameId, long classPK, String name, String type, String mode, String language, String script)
           
protected  DDMTemplate addTemplate(long classNameId, long classPK, String templateKey, String name, String type, String mode, String language, String script)
           
protected  String getBasePath()
           
protected  String getTestTemplateScript(String language)
           
protected  String read(String fileName)
           
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ddmStructureLayoutTestHelper

protected DDMStructureLayoutTestHelper ddmStructureLayoutTestHelper

ddmStructureTestHelper

protected DDMStructureTestHelper ddmStructureTestHelper

group

@DeleteAfterTestRun
protected Group group
Constructor Detail

BaseDDMServiceTestCase

public BaseDDMServiceTestCase()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

addDisplayTemplate

protected DDMTemplate addDisplayTemplate(long classNameId,
                                         long classPK,
                                         long sourceClassNameId,
                                         String name,
                                         String description)
                                  throws Exception
Throws:
Exception

addDisplayTemplate

protected DDMTemplate addDisplayTemplate(long classNameId,
                                         long classPK,
                                         String name)
                                  throws Exception
Throws:
Exception

addDisplayTemplate

protected DDMTemplate addDisplayTemplate(long classPK,
                                         String name)
                                  throws Exception
Throws:
Exception

addFormTemplate

protected DDMTemplate addFormTemplate(long classPK,
                                      String name)
                               throws Exception
Throws:
Exception

addFormTemplate

protected DDMTemplate addFormTemplate(long classPK,
                                      String name,
                                      String definition)
                               throws Exception
Throws:
Exception

addStructure

protected DDMStructure addStructure(long parentStructureId,
                                    long classNameId,
                                    String structureKey,
                                    String name,
                                    String definition,
                                    String storageType,
                                    int type)
                             throws Exception
Throws:
Exception

addStructure

protected DDMStructure addStructure(long parentStructureId,
                                    long classNameId,
                                    String structureKey,
                                    String name,
                                    String description,
                                    String definition,
                                    String storageType,
                                    int type)
                             throws Exception
Throws:
Exception

addStructure

protected DDMStructure addStructure(long classNameId,
                                    String name)
                             throws Exception
Throws:
Exception

addStructure

protected DDMStructure addStructure(long classNameId,
                                    String name,
                                    String description)
                             throws Exception
Throws:
Exception

addStructure

protected DDMStructure addStructure(long classNameId,
                                    String structureKey,
                                    String name,
                                    String definition,
                                    String storageType,
                                    int type)
                             throws Exception
Throws:
Exception

addTemplate

protected DDMTemplate addTemplate(long classNameId,
                                  long classPK,
                                  long sourceClassNameId,
                                  String templateKey,
                                  String name,
                                  String description,
                                  String type,
                                  String mode,
                                  String language,
                                  String script)
                           throws Exception
Throws:
Exception

addTemplate

protected DDMTemplate addTemplate(long classNameId,
                                  long classPK,
                                  String name,
                                  String type,
                                  String mode,
                                  String language,
                                  String script)
                           throws Exception
Throws:
Exception

addTemplate

protected DDMTemplate addTemplate(long classNameId,
                                  long classPK,
                                  String templateKey,
                                  String name,
                                  String type,
                                  String mode,
                                  String language,
                                  String script)
                           throws Exception
Throws:
Exception

getBasePath

protected String getBasePath()

getTestTemplateScript

protected String getTestTemplateScript(String language)
                                throws Exception
Throws:
Exception

read

protected String read(String fileName)
               throws Exception
Throws:
Exception

Liferay 7.0-ce-m6