Skip to content

Commit

Permalink
Remove explicit call of JenkinsRule.after()
Browse files Browse the repository at this point in the history
  • Loading branch information
a-st committed Sep 29, 2023
1 parent 6d8ecd5 commit c7fb7d7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import hudson.plugins.performance.details.GraphConfigurationDetail;
import hudson.plugins.performance.details.TestSuiteReportDetail;
import hudson.plugins.performance.details.TrendReportDetail;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -27,12 +26,6 @@ public class PerformanceProjectActionTest {
@Mock
private StaplerRequest staplerRequest;

@After
public void shutdown() throws Exception {
j.after();
}


@Test
public void testDynamic() throws Exception {
FreeStyleProject freeStyleProject = j.createFreeStyleProject("testProject");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.List;

import hudson.plugins.performance.constraints.blocks.TestCaseBlock;
import org.junit.After;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
Expand All @@ -28,11 +27,6 @@ public class ConstraintTest {
@Rule
public JenkinsRule j = new JenkinsRule();

@After
public void shutdown() throws Exception {
j.after();
}

/**
* Testing: Escalation.INFORMATION
* Build must stay successful if the value is exceeded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import hudson.plugins.performance.constraints.AbsoluteConstraint;
import hudson.plugins.performance.constraints.RelativeConstraint;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
Expand All @@ -14,11 +13,6 @@ public class ConstraintDescriptorTest {
@Rule
public JenkinsRule j = new JenkinsRule();

@After
public void shutdown() throws Exception {
j.after();
}

@Test
public void name() throws Exception {
ConstraintDescriptor descriptor = ConstraintDescriptor.getById(AbsoluteConstraint.DescriptorImpl.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import hudson.plugins.performance.parsers.JmeterSummarizerParser;
import hudson.plugins.performance.parsers.TaurusParser;
import hudson.plugins.performance.parsers.WrkSummarizerParser;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
Expand All @@ -19,11 +18,6 @@ public class PerformanceReportParserDescriptorTest {
@Rule
public JenkinsRule j = new JenkinsRule();

@After
public void shutdown() throws Exception {
j.after();
}

@Test
public void name() throws Exception {
PerformanceReportParserDescriptor descriptor = PerformanceReportParserDescriptor.getById(IagoParser.DescriptorImpl.class.getName());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package hudson.plugins.performance.details;

import hudson.model.FreeStyleProject;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -24,11 +23,6 @@ public class GraphConfigurationDetailTest {
@Mock
private StaplerRequest request;

@After
public void shutdown() throws Exception {
j.after();
}

@Test
public void testDefault() throws Exception {
FreeStyleProject project = j.createFreeStyleProject("testProject");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import hudson.plugins.performance.reports.PerformanceReport;
import hudson.plugins.performance.reports.UriReport;
import org.jfree.data.category.CategoryDataset;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
Expand Down Expand Up @@ -68,11 +67,6 @@ public void setUp() throws Exception {
uriReportMap.put(TEST_URI, getUriReport());
}

@After
public void shutdown() throws Exception {
j.after();
}

private UriReport getUriReport() {
UriReport uriReport = new UriReport(report, TEST_URI, TEST_URI);
final HttpSample sample1 = new HttpSample();
Expand Down

0 comments on commit c7fb7d7

Please sign in to comment.