Package com.dotmarketing.portlets.structure.model

Examples of com.dotmarketing.portlets.structure.model.Structure


     */
    @Test
    public void getTotalImages () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting all the images fields for this structure
        int totalImages = StructureFactory.getTotalImages( structure );

        //Validations
View Full Code Here


     */
    @Test
    public void getTotalFiles () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting all the files fields for this structure
        int totalFiles = StructureFactory.getTotalFiles( structure );

        //Validations
View Full Code Here

     */
    @Test
    public void getTotalTextAreas () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting all the text areas fields for this structure
        int totalTextAreas = StructureFactory.getTotalTextAreas( structure );

        //Validations
View Full Code Here

     */
    @Test
    public void getTotalWYSIWYG () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting all the WYSIWYG fields for this structure
        int totalWYSIWYG = StructureFactory.getTotalWYSIWYG( structure );

        //Validations
View Full Code Here

     */
    @Test
    public void getTotals () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting all the text fields for this structure
        int totalText = StructureFactory.getTotals( structure, Field.FieldType.TEXT.toString() );

        //Validations
View Full Code Here

        //Disabled the current default structure
        StructureFactory.disableDefault();

        //Trying to find the default structure
        Structure defaultStructure = StructureFactory.getDefaultStructure();

        //Validations
        assertTrue( defaultStructure.getInode() == null || defaultStructure.getInode().isEmpty() );//It shouldn't be any default structure, we just disabled the default, no one should be found

        //Create a new default structure
        StructureFactory.createDefaultStructure();

        //Find the new default structure
        defaultStructure = StructureFactory.getDefaultStructure();

        //Validations
        assertTrue( defaultStructure.getInode() != null && !defaultStructure.getInode().isEmpty() );
    }
View Full Code Here

     */
    @Test
    public void getTagsFields () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting all the tags fields for this structure
        Collection<Field> tagsFields = StructureFactory.getTagsFields( structure.getInode() );

        //Validations
        assertTrue( tagsFields != null && !tagsFields.isEmpty() );
    }
View Full Code Here

     */
    @Test
    public void getImagesFieldsList () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Preparing the parameters for the search
        List<String> varNames = new ArrayList<String>();
        varNames.add( UtilMethods.toCamelCase( "JUnit Test Image" ) );

View Full Code Here

     */
    @Test
    public void getFilesFieldsList () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Preparing the parameters for the search
        List<String> varNames = new ArrayList<String>();
        varNames.add( UtilMethods.toCamelCase( "JUnit Test File" ) );

View Full Code Here

     */
    @Test
    public void getFieldByInode () {

        //Getting a known structure
        Structure structure = structures.iterator().next();

        //Getting the fields for this structure
        Collection<Field> fields = FieldsCache.getFieldsByStructureInode( structure.getInode() );

        Iterator<Field> iterator = fields.iterator();
        Field field = iterator.next();

        //Verify we found an stored field
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.structure.model.Structure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.