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

io.sealights.onpremise.agents.plugin.Constants Maven / Gradle / Ivy

There is a newer version: 4.0.954
Show newest version
package io.sealights.onpremise.agents.plugin;

import org.gradle.api.plugins.JavaPlugin;

import lombok.AllArgsConstructor;

public class Constants {
	public static final String PLUGIN_EXTENSION_NAME = "sealights";
	public final static String JUNIT_PLATFORM_TEST_TASK = "junitPlatformTest";
	public final static String INTEGRATION_TEST_TASK = "integrationTest";
	public final static String UNIT_TESTS_STAGE = "Unit Tests";
	public final static String INTEGRATION_TESTS_STAGE = "Integration Tests";
	public final static String JMOCKIT = "jmockit";
	public final static String JAVA_AGENT ="javaagent";

	@AllArgsConstructor
	public static class TestTaskInfo {
		String taskName;
		String testStage;
	}
	
	public static final TestTaskInfo[] DEFAULT_TEST_TASK_STAGES = {
			new TestTaskInfo(JavaPlugin.TEST_TASK_NAME, UNIT_TESTS_STAGE),
			new TestTaskInfo(JUNIT_PLATFORM_TEST_TASK, UNIT_TESTS_STAGE),
			new TestTaskInfo(INTEGRATION_TEST_TASK, INTEGRATION_TESTS_STAGE),
	};

	/**
	 * Should be removed as soon as all customers will move to the new sealights-gradle-plugin implementation,
	 * which uses the property testTasksAndStages instead of the properties testTasks
	 * and testStage
	 */
	@Deprecated
	public static final String [] DEFAULT_TEST_TASKS = {
			JavaPlugin.TEST_TASK_NAME, 
			JUNIT_PLATFORM_TEST_TASK,
			INTEGRATION_TEST_TASK,
			};

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy