-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #507 from basil/JENKINS-72409
[JENKINS-72409] `StackOverflowError` with Rebuild v330.v645b_7df10e2a
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritRebuildValidatorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.sonyericsson.hudson.plugins.gerrit.trigger; | ||
|
||
import static org.junit.Assert.assertNotNull; | ||
|
||
import hudson.ExtensionList; | ||
import hudson.model.Action; | ||
import hudson.model.FreeStyleProject; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.jvnet.hudson.test.Issue; | ||
import org.jvnet.hudson.test.JenkinsRule; | ||
|
||
/** | ||
* Tests for {@link GerritRebuildValidator}. | ||
*/ | ||
public class GerritRebuildValidatorTest { | ||
|
||
/** | ||
* An instance of {@link JenkinsRule}. | ||
*/ | ||
// CS IGNORE VisibilityModifier FOR NEXT 2 LINES. REASON: JenkinsRule. | ||
@Rule | ||
public final JenkinsRule j = new JenkinsRule(); | ||
|
||
@Issue("JENKINS-72409") | ||
@Test | ||
public void testRebuildValidatorStackOverflow() throws Exception { | ||
assertNotNull(ExtensionList.lookupSingleton(GerritRebuildValidator.class)); | ||
FreeStyleProject p = j.createFreeStyleProject(); | ||
j.assertBuildStatusSuccess(p.scheduleBuild2(0, null, new Action[0])); | ||
} | ||
} |