TLiferayOutputDefinition extends LiferayDefinition { @Override public Property[] getReturnProperties() { return new Property[] { RETURN_ERROR_MESSAGE_PROP, RETURN_REJECT_RECORD_COUNT_PROP, RETURN_SUCCESS_RECORD_COUNT_PROP, RETURN_TOTAL_RECORD_COUNT_PROP }; } TLiferayOutputDefinition(); @Override Class<? extends ComponentProperties>[] getNestedCompatibleComponentPropertiesClass(); @Override Class<? extends ComponentProperties> getPropertyClass(); @Override Property[] getReturnProperties(); @Override RuntimeInfo getRuntimeInfo(
		ExecutionEngine executionEngine,
		ComponentProperties componentProperties,
		ConnectorTopology connectorTopology); @Override Set<ConnectorTopology> getSupportedConnectorTopologies(); @Override boolean isConditionalInputs(); static final String COMPONENT_NAME; }
@Test public void testGetReturnProperties() { List<Property<?>> propertyList = Arrays.asList( _tLiferayOutputDefinition.getReturnProperties()); assertThat(propertyList, hasSize(4)); Assert.assertTrue( propertyList.contains( ComponentDefinition.RETURN_ERROR_MESSAGE_PROP)); Assert.assertTrue( propertyList.contains( ComponentDefinition.RETURN_REJECT_RECORD_COUNT_PROP)); Assert.assertTrue( propertyList.contains( ComponentDefinition.RETURN_SUCCESS_RECORD_COUNT_PROP)); Assert.assertTrue( propertyList.contains( ComponentDefinition.RETURN_TOTAL_RECORD_COUNT_PROP)); }