text:
define(
	[
		'lib/communication/applicationChannels',
		'lib/communication/flowViewChannels',
		'lib/util/xfUtil',
		'lib/render/cardRenderer',
		'lib/render/clusterRenderer',
		'lib/constants'
	],
	function(
		appChannel,
		flowChannel,
		xfUtil,
		cardRenderer,
		clusterRenderer,
		constants
	) {

		var _cardDefaults = cardRenderer.getRenderDefaults();
		var CONTAINER_WIDTH_PADDING = 40;
		var _renderDefaults = {
			MATCHCARD_WIDTH : _cardDefaults.CARD_WIDTH + 2*_cardDefaults.MARGIN + CONTAINER_WIDTH_PADDING,
			CONTAINER_PADDING_TOP : 3,
			CONTAINER_PADDING_BOTTOM : 5,
			SEARCH_CTRL_PADDING_TOP : 5,
			SEARCH_CTRL_PADDING_BOTTOM : 2,
			SEARCH_RESULT_PADDING_TOP : 2,
			SEARCH_RESULT_COUNT_HEIGHT : 18,
			SEARCH_RESULT_HEIGHT : 100,
			TAB_HEIGHT : 12
		};

		//--------------------------------------------------------------------------------------------------------------

		var initStyling = function(canvas){
			canvas.css('position', 'relative');
			canvas.addClass('matchCardContainer');
			canvas.width(_renderDefaults.MATCHCARD_WIDTH);
			canvas.css('padding-top', _renderDefaults.CONTAINER_PADDING_TOP);
			canvas.css('padding-bottom', _renderDefaults.CONTAINER_PADDING_BOTTOM);

			// append the little tab to the top of the container
			var matchCardTab = $(canvas).children('.matchCardTab');
			if (matchCardTab.length === 0) {
				matchCardTab = $('

');
				matchCardTab.addClass('matchCardTab');
				matchCardTab.css('border-bottom-width', _renderDefaults.TAB_HEIGHT);
				matchCardTab.css('top', -(_renderDefaults.TAB_HEIGHT - _renderDefaults.SEARCH_CTRL_PADDING_TOP));
				canvas.append(matchCardTab);
			}
		};

		//--------------------------------------------------------------------------------------------------------------

		var createSearchControls = function(visualInfo){

			var parentId = visualInfo.xfId;

			// Create the controls
			var form  = $('

');
			var removeButton = $('

');

			// Add the controls.
			form.append(removeButton);

			// configure the controls
			form.addClass('matchCardForm');

			removeButton.addClass('matchRemoveButton');
			xfUtil.makeTooltip(removeButton, 'remove', 'remove matchcard');

			// set the remove button click handling
			removeButton.click(
				function() {
					aperture.pubsub.publish(
						appChannel.REMOVE_REQUEST,
						{
							xfIds : [parentId],
							dispose : true,
							isMatchCard : true,
							userRequested : true
						}
					);
					return false;
				}
			);

			return form;
		};

		//--------------------------------------------------------------------------------------------------------------

		var _processChildren = function(childObjects, parentCanvas, minIdx, maxIdx){
			for (var i=minIdx; i < Math.min(maxIdx, childObjects.length); i++){
				var visualInfo = childObjects[i].getVisualInfo();
				var element = null;

				switch(childObjects[i].getUIType()){
					case constants.MODULE_NAMES.IMMUTABLE_CLUSTER :
					case constants.MODULE_NAMES.MUTABLE_CLUSTER :
					case constants.MODULE_NAMES.SUMMARY_CLUSTER : {
						element = clusterRenderer.renderElement(visualInfo);
						break;
					}
					case constants.MODULE_NAMES.ENTITY : {
						element = cardRenderer.renderElement(visualInfo);
						break;
					}
					default : {
						aperture.log.error('Attempted to add an unsupported UIObject type to column');
					}
				}
				if (element){
					element.css('left', _cardDefaults.CARD_LEFT);
					parentCanvas.append(element);
				}
			}
		};

		//--------------------------------------------------------------------------------------------------------------

		var _getPageString = function(visualInfo) {
			var minIdx = visualInfo.minIdx;
			var maxIdx = Math.min(visualInfo.maxIdx, visualInfo.children.length);
			return (minIdx + 1) + '-' + maxIdx + ' of ' + visualInfo.totalMatches + ' results';
		};

		//--------------------------------------------------------------------------------------------------------------

		var matchRenderer = {};

		//--------------------------------------------------------------------------------------------------------------

		matchRenderer.renderElement = function(visualInfo, updateOnly) {

			var canvas = $('#' + visualInfo.xfId);

			if (updateOnly) {
				return canvas;
			}

			var searchDiv = canvas.children('.searchControls');
			var cardDiv = canvas.children('.searchResults');
			if (cardDiv.length > 0){
				cardDiv.empty();
				cardDiv.height(_renderDefaults.SEARCH_RESULT_HEIGHT);
				// Remove any previous listeners.
				xfUtil.clearMouseListeners(canvas, ['mousedown']);
			} else {
				canvas = $('

');
				canvas.attr('id', visualInfo.xfId);

				// Create the search controls.
				searchDiv = $('

');
				searchDiv.addClass('searchControls');
				searchDiv.css('padding-top', _renderDefaults.SEARCH_CTRL_PADDING_TOP);
				searchDiv.css('padding-bottom', _renderDefaults.SEARCH_CTRL_PADDING_BOTTOM);
				canvas.append(searchDiv);

				var searchElement = createSearchControls(visualInfo);
				searchDiv.append(searchElement);

				// Create the container for the search results.
				cardDiv = $('

');
				cardDiv.addClass('searchResults');
				cardDiv.css('height', _renderDefaults.SEARCH_RESULT_HEIGHT);
				cardDiv.css('padding-top', _renderDefaults.SEARCH_RESULT_PADDING_TOP);
				canvas.append(cardDiv);
			}

			if(visualInfo.isSearchControlHighlighted) {		// set the appropriate borders
				searchDiv.removeClass('searchControlsBorderPlain');
				cardDiv.removeClass('matchResultsBorderPlain');
				searchDiv.addClass('searchControlsBorderHighlight');
				cardDiv.addClass('matchResultsBorderHighlight');
			}
			else {
				searchDiv.removeClass('searchControlsBorderHighlight');
				cardDiv.removeClass('matchResultsBorderHighlight');
				searchDiv.addClass('searchControlsBorderPlain');
				cardDiv.addClass('matchResultsBorderPlain');
			}

			if (visualInfo.spec.searchState === 'init') {
				// append a 'search results here' div
				var searchEntitiesDiv = $('

');
				searchEntitiesDiv.addClass('emptyMatchBackground');
				searchEntitiesDiv.html('Search Accounts');
				searchEntitiesDiv.width(_renderDefaults.MATCHCARD_WIDTH);
				searchEntitiesDiv.css('height', _renderDefaults.SEARCH_RESULT_HEIGHT);
				cardDiv.append(searchEntitiesDiv);
			} else if (visualInfo.spec.searchState === 'searching') {
				var searchingDiv = $('

');
				searchingDiv.addClass('emptyMatchBackground');
				searchingDiv.width(_renderDefaults.MATCHCARD_WIDTH);
				searchingDiv.css('height', _renderDefaults.SEARCH_RESULT_HEIGHT);
				searchingDiv.css('background', constants.AJAX_SPINNER_BG);
				cardDiv.append(searchingDiv);
				aperture.pubsub.publish(flowChannel.SET_SEARCH_PAGE_REQUEST, {
                    xfId: visualInfo.xfId,
                    page: 0,
                    noRender: true
                });
			} else {
				var childUIObjects = visualInfo.children;
				if ( childUIObjects.length > 0 ) {
					cardDiv.css('height','auto');

					_processChildren(childUIObjects, cardDiv, visualInfo.minIdx, visualInfo.maxIdx);

					var searchPagingControlDiv = $('

');

					var searchPagingLabel =$('

');
					searchPagingLabel.html(_getPageString(visualInfo));
					searchPagingLabel.css('height', _renderDefaults.SEARCH_RESULT_COUNT_HEIGHT);

					var prevButton = xfUtil.makeButton(null, 'ui-icon-carat-1-w', null, 'prevPageButton', null).click(function() {
						aperture.pubsub.publish(appChannel.PREV_SEARCH_PAGE_REQUEST, {xfId : visualInfo.xfId});
					});
					xfUtil.makeTooltip(prevButton, 'display previous page of search results');

					var nextButton = xfUtil.makeButton(null, 'ui-icon-carat-1-e', null, 'nextPageButton', null).click(function() {
						aperture.pubsub.publish(appChannel.NEXT_SEARCH_PAGE_REQUEST, {xfId : visualInfo.xfId});
					});
					xfUtil.makeTooltip(nextButton, 'display next page of search results');

					searchPagingControlDiv.append(prevButton);
					searchPagingControlDiv.append(searchPagingLabel);
					searchPagingControlDiv.append(nextButton);

					cardDiv.append(searchPagingControlDiv);
				} else {
					var noEntitiesDiv = $('

');
					noEntitiesDiv.addClass('emptyMatchBackground');
					noEntitiesDiv.html('No Results Found');
					noEntitiesDiv.width(_renderDefaults.MATCHCARD_WIDTH);
					noEntitiesDiv.css('height', _renderDefaults.SEARCH_RESULT_HEIGHT);
					cardDiv.append(noEntitiesDiv);
				}

			}

			initStyling(canvas);

			return canvas;
		};

		//--------------------------------------------------------------------------------------------------------------

		matchRenderer.getRenderDefaults = function(){
			return _renderDefaults;
		};

		//--------------------------------------------------------------------------------------------------------------

		return matchRenderer;
	}
);


text:
<?php
/*
 * Composer autoload
 */
require_once 'vendor/autoload.php';

/**
 * Sage includes
 *
 * The $sage_includes array determines the code library included in your theme.
 * Add or remove files to the array as needed. Supports child theme overrides.
 *
 * Please note that missing files will produce a fatal error.
 *
 * @link https://github.com/roots/sage/pull/1042
 */
$sage_includes = [
  'lib/assets.php',       // Scripts and stylesheets
  'lib/extras.php',       // Custom functions
  'lib/setup.php',        // Theme setup
  'lib/titles.php',       // Page titles
  'lib/wrapper.php',      // Theme wrapper class
  'lib/customizer.php',   // Theme customizer
  'lib/woocommerce.php',  // WooCommerce
  'lib/acf.php'           // ACF
];

foreach ($sage_includes as $file) {
  if (!$filepath = locate_template($file)) {
    trigger_error(sprintf(__('Error locating %s for inclusion', 'sage'), $file), E_USER_ERROR);
  }

  require_once $filepath;
}
unset($file, $filepath);

redpajama_set_name: RedPajamaGithub


text:
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**button** | [**Button**](Button.md) |  |
**description** | **String** | Ex: The more data I have the more accurate your results will be so track regularly! |
**title** | **String** | Ex: Improve Accuracy |


text:
/**
 * Generated by Agitar build: AgitarOne Version 6.0.0.000018 (Build date: Sep 06, 2013) [6.0.0.000018]
 * JDK Version: 1.6.0_14
 *
 * Generated on 2014-3-11 13:27:22
 * Time to generate: 00:35.937 seconds
 *
 *
 * agitar.src.md5=com.huawei.ism.openapi.cachepartition.CachePartitionMO:46a2364f3287abff86a2855c151153a7
 *
 */

package com.huawei.ism.openapi.cachepartition;

import com.agitar.lib.junit.AgitarTestCase;
import com.huawei.ism.openapi.common.model.MO;
import com.huawei.ism.openapi.common.model.MOType;
import java.util.HashMap;
import org.json.JSONObject;

public class CachePartitionMOAgitarTest extends AgitarTestCase {

    public Class getTargetClass()  {
        return CachePartitionMO.class;
    }

    public void testConstructor() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testConstructor1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetCount() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Long result = cachePartitionMO.getCount();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetDescription() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setDescription("testCachePartitionMODescription");
        String result = cachePartitionMO.getDescription();
        assertEquals("result", "testCachePartitionMODescription", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetDescription1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        String result = cachePartitionMO.getDescription();
        assertNull("result", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetExpectReadSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setExpectReadSize(new Long(0L));
        Long result = cachePartitionMO.getExpectReadSize();
        assertEquals("result", 0L, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetExpectReadSize1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Long result = cachePartitionMO.getExpectReadSize();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetExpectWriteSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        cachePartitionMO.setExpectWriteSize(new Long(0L));
        Long result = cachePartitionMO.getExpectWriteSize();
        assertEquals("result", 0L, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetExpectWriteSize1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Long result = cachePartitionMO.getExpectWriteSize();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetId() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        String result = cachePartitionMO.getId();
        assertNull("result", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetId1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setId("testCachePartitionMOId");
        String result = cachePartitionMO.getId();
        assertEquals("result", "testCachePartitionMOId", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMO() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        MO result = cachePartitionMO.getMO();
        assertEquals("result.getProperties().size()", 2, result.getProperties().size());
    }

    public void testGetMaxReadSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        Long result = cachePartitionMO.getMaxReadSize();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMaxReadSize1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setMaxReadSize(new Long(0L));
        Long result = cachePartitionMO.getMaxReadSize();
        assertEquals("result", 0L, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMaxWriteSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Long result = cachePartitionMO.getMaxWriteSize();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMaxWriteSize1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject(new HashMap(100, 100.0F)));
        cachePartitionMO.setMaxWriteSize(new Long(0L));
        Long result = cachePartitionMO.getMaxWriteSize();
        assertEquals("result", 0L, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMinReadSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setMinReadSize(new Long(0L));
        Long result = cachePartitionMO.getMinReadSize();
        assertEquals("result", 0L, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMinReadSize1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Long result = cachePartitionMO.getMinReadSize();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMinWriteSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setMinWriteSize(new Long(0L));
        Long result = cachePartitionMO.getMinWriteSize();
        assertEquals("result", 0L, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetMinWriteSize1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Long result = cachePartitionMO.getMinWriteSize();
        assertEquals("result", Long.MIN_VALUE, result.longValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetName() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        String result = cachePartitionMO.getName();
        assertNull("result", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetName1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        cachePartitionMO.setName("testCachePartitionMOName");
        String result = cachePartitionMO.getName();
        assertEquals("result", "testCachePartitionMOName", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetParentId() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        String result = cachePartitionMO.getParentId();
        assertNull("result", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetParentId1() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setParentId("testCachePartitionMOId");
        String result = cachePartitionMO.getParentId();
        assertEquals("result", "testCachePartitionMOId", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testGetParentType() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        MOType result = cachePartitionMO.getParentType();
        assertEquals("result", MOType.STORAGEENGINE, result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testIsDefault() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        Boolean result = cachePartitionMO.isDefault();
        assertFalse("result", result.booleanValue());
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetDescription() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setDescription("testCachePartitionMODescription");
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("DESCRIPTION");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"DESCRIPTION\")", "testCachePartitionMODescription", actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetExpectReadSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setExpectReadSize(new Long(-100L));
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("EXPECTREADSIZE");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"EXPECTREADSIZE\")", new Long(-100L), actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetExpectWriteSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setExpectWriteSize(new Long(126L));
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("EXPECTWRITESIZE");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"EXPECTWRITESIZE\")", new Long(126L), actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetId() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setId("testCachePartitionMOId");
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        assertEquals("cachePartitionMO.mo.getProperties().get(\"ID\")", "testCachePartitionMOId", ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("ID"));
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetMaxReadSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        cachePartitionMO.setMaxReadSize(new Long(0L));
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("MAXREADSIZE");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"MAXREADSIZE\")", new Long(0L), actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetMaxWriteSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setMaxWriteSize(new Long(100L));
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("MAXWRITESIZE");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"MAXWRITESIZE\")", new Long(100L), actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetMinReadSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO(new JSONObject());
        cachePartitionMO.setMinReadSize(new Long(0L));
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("MINREADSIZE");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"MINREADSIZE\")", new Long(0L), actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetMinWriteSize() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setMinWriteSize(new Long(0L));
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        Object actual = ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("MINWRITESIZE");
        assertEquals("cachePartitionMO.mo.getProperties().get(\"MINWRITESIZE\")", new Long(0L), actual);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetName() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setName("testCachePartitionMOName");
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        assertEquals("cachePartitionMO.mo.getProperties().get(\"NAME\")", "testCachePartitionMOName", ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("NAME"));
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetParentId() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setParentId("testCachePartitionMOId");
        assertEquals("cachePartitionMO.mo.getProperties().size()", 3, ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().size());
        assertEquals("cachePartitionMO.mo.getProperties().get(\"PARENTID\")", "testCachePartitionMOId", ((MO) getPrivateField(cachePartitionMO, "mo")).getProperties().get("PARENTID"));
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetParentName() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        String result = cachePartitionMO.setParentName();
        assertNull("result", result);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetParentType() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        cachePartitionMO.setParentType(MOType.STORAGEENGINE);
        assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
    }

    public void testSetDescriptionThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setDescription(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetExpectReadSizeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setExpectReadSize(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetExpectWriteSizeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setExpectWriteSize(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetIdThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setId(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetMaxReadSizeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setMaxReadSize(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetMaxWriteSizeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setMaxWriteSize(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetMinReadSizeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setMinReadSize(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetMinWriteSizeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setMinWriteSize(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetNameThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setName(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetParentIdThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setParentId(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }

    public void testSetParentTypeThrowsNullPointerException() throws Throwable {
        CachePartitionMO cachePartitionMO = new CachePartitionMO();
        try {
            cachePartitionMO.setParentType(null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertThrownBy(CachePartitionMO.class, ex);
            assertNotNull("cachePartitionMO.mo", getPrivateField(cachePartitionMO, "mo"));
        }
    }
}


text:
@interface BPFormInputTextFieldCell ()

@property (nonatomic, strong) MASConstraint *widthConstraint;
@property (nonatomic, strong) MASConstraint *heightConstraint;

@end

@implementation BPFormInputTextFieldCell

// auto-synthesize doesn't work here since the properties are defined in a base class (BPFormCell)
@synthesize spaceToNextCell = _spaceToNextCell;
@synthesize customContentHeight = _customContentHeight;
@synthesize customContentWidth = _customContentWidth;

+ (Class)textInputClass {
    return [BPFormTextField class];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupTextField];

        [self.contentView bringSubviewToFront:self.validationImageView];

        [self.mandatoryImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.textField.mas_left).with.offset(-4).priorityHigh();
        }];

        [self.validationImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.textField.mas_right).priorityHigh();
            make.centerY.equalTo(self.textField.mas_centerY).priorityHigh();
        }];
    }
    return self;
}

- (void)setupTextField {
    Class textInputClass = [[self class] textInputClass];
    if (!textInputClass) {
        textInputClass = [BPFormTextField class];
    }

    self.textField = [[textInputClass alloc] init];

    self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
    self.textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    self.textField.textColor = [BPAppearance sharedInstance].inputCellTextFieldTextColor;
    self.textField.font = [BPAppearance sharedInstance].inputCellTextFieldFont;
    self.textField.backgroundColor = [BPAppearance sharedInstance].inputCellTextFieldBackgroundColor;

    self.textField.layer.borderColor = [BPAppearance sharedInstance].inputCellTextFieldBorderColor.CGColor;
    self.textField.layer.borderWidth = 0.5;

    [self.contentView addSubview:self.textField];

    [self.widthConstraint uninstall];
    [self.heightConstraint uninstall];

    [self.textField mas_updateConstraints:^(MASConstraintMaker *make) {
        self.widthConstraint = make.width.equalTo(self.mas_width).offset(-30);
        make.centerX.equalTo(self.mas_centerX);
        make.top.equalTo(self.mas_top);
        self.heightConstraint = make.height.equalTo(self.mas_height).offset(-self.spaceToNextCell);
    }];
}

- (void)setSpaceToNextCell:(CGFloat)inSpaceToNextCell {
    if (inSpaceToNextCell != _spaceToNextCell) {
        _spaceToNextCell = inSpaceToNextCell;

        if (self.customContentHeight == 0) {

            [self.heightConstraint uninstall];
            [self.textField mas_updateConstraints:^(MASConstraintMaker *make) {
                self.heightConstraint = make.height.equalTo(self.mas_height).offset(-inSpaceToNextCell);
            }];
        }
    }
}

- (void)setCustomContentHeight:(CGFloat)inCustomContentHeight {
    if (inCustomContentHeight != _customContentHeight) {
        _customContentHeight = inCustomContentHeight;

        [self.heightConstraint uninstall];
        [self.textField mas_updateConstraints:^(MASConstraintMaker *make) {
            self.heightConstraint = make.height.equalTo(@(inCustomContentHeight));
        }];
    }
}

- (void)setCustomContentWidth:(CGFloat)inCustomContentWidth {
    if (inCustomContentWidth != _customContentWidth) {
        _customContentWidth = inCustomContentWidth;

        [self.widthConstraint uninstall];
        [self.textField mas_updateConstraints:^(MASConstraintMaker *make) {
            self.widthConstraint = make.width.equalTo(@(inCustomContentWidth));
        }];
    }
}

@end