com.liferay.jenkins.results.parser.test.clazz.TestClassMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.jenkins.results.parser
Show all versions of com.liferay.jenkins.results.parser
Liferay Jenkins Results Parser
The 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;
import org.json.JSONObject;
/**
* @author Michael Hashimoto
*/
public class TestClassMethod {
public JSONObject getJSONObject() {
return _jsonObject;
}
public String getName() {
return _name;
}
public TestClass getTestClass() {
return _testClass;
}
public boolean isIgnored() {
return _ignored;
}
protected TestClassMethod(
boolean ignored, String name, TestClass testClass) {
_ignored = ignored;
_name = name;
_testClass = testClass;
_jsonObject = new JSONObject();
_jsonObject.put(
"ignored", ignored
).put(
"name", name
);
}
protected TestClassMethod(JSONObject jsonObject, TestClass testClass) {
_jsonObject = jsonObject;
_testClass = testClass;
_ignored = jsonObject.getBoolean("ignored");
_name = jsonObject.getString("name");
}
private final boolean _ignored;
private final JSONObject _jsonObject;
private final String _name;
private final TestClass _testClass;
}