All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.jenkins.results.parser.test.clazz.group.ServiceBuilderModulesSegmentTestClassGroup Maven / Gradle / Ivy

There is a newer version: 1.0.1492
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.jenkins.results.parser.test.clazz.group;

import org.json.JSONObject;

/**
 * @author Michael Hashimoto
 */
public class ServiceBuilderModulesSegmentTestClassGroup
	extends ModulesSegmentTestClassGroup {

	@Override
	public String getTestCasePropertiesContent() {
		StringBuilder sb = new StringBuilder();

		sb.append(super.getTestCasePropertiesContent());

		ServiceBuilderModulesBatchTestClassGroup.BuildType buildType =
			_serviceBuilderModulesBatchTestClassGroup.getBuildType();

		if (buildType !=
				ServiceBuilderModulesBatchTestClassGroup.BuildType.CORE) {

			sb.append("SKIP_SERVICE_BUILDER_CORE=true\n");
		}

		if (buildType !=
				ServiceBuilderModulesBatchTestClassGroup.BuildType.FULL) {

			sb.append("SKIP_SERVICE_BUILDER_FULL=true\n");
		}

		return sb.toString();
	}

	protected ServiceBuilderModulesSegmentTestClassGroup(
		BatchTestClassGroup batchTestClassGroup) {

		super(batchTestClassGroup);

		if (!(batchTestClassGroup instanceof
				ServiceBuilderModulesBatchTestClassGroup)) {

			throw new RuntimeException("Invalid parent batch test class group");
		}

		_serviceBuilderModulesBatchTestClassGroup =
			(ServiceBuilderModulesBatchTestClassGroup)batchTestClassGroup;
	}

	protected ServiceBuilderModulesSegmentTestClassGroup(
		BatchTestClassGroup batchTestClassGroup, JSONObject jsonObject) {

		super(batchTestClassGroup, jsonObject);

		if (!(batchTestClassGroup instanceof
				ServiceBuilderModulesBatchTestClassGroup)) {

			throw new RuntimeException("Invalid parent batch test class group");
		}

		_serviceBuilderModulesBatchTestClassGroup =
			(ServiceBuilderModulesBatchTestClassGroup)batchTestClassGroup;
	}

	private final ServiceBuilderModulesBatchTestClassGroup
		_serviceBuilderModulesBatchTestClassGroup;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy