org.junitpioneer.jupiter.issue.IssueTestCaseBuilder Maven / Gradle / Ivy
/*
* Copyright 2016-2022 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v20.html
*/
package org.junitpioneer.jupiter.issue;
import org.junit.platform.engine.TestExecutionResult.Status;
import org.junitpioneer.jupiter.IssueTestCase;
class IssueTestCaseBuilder {
private final String testId;
private String issueId;
private Status result;
public IssueTestCaseBuilder(String testId) {
this.testId = testId;
}
public IssueTestCaseBuilder setResult(Status result) {
this.result = result;
return this;
}
public String getIssueId() {
return issueId;
}
public IssueTestCaseBuilder setIssueId(String issueId) {
this.issueId = issueId;
return this;
}
public IssueTestCase build() {
return new IssueTestCase(testId, result);
}
}