Skip to content

Commit

Permalink
[JENKINS-18074] Fixed unit test by making StubJob.getParent forgiving.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored and olivergondza committed Sep 17, 2013
1 parent c0102e7 commit 4dccb6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/test/java/hudson/model/StubJob.java
Expand Up @@ -28,8 +28,9 @@

/**
* @author kingfai
*
* @deprecated Does not behave very consistently. Either write a real functional test with {@code JenkinsRule}, or use PowerMock/Mockito.
*/
@Deprecated
@SuppressWarnings({ "rawtypes", "unchecked" })
class StubJob extends Job {

Expand Down Expand Up @@ -69,4 +70,8 @@ public void save() {

}

@Override public ItemGroup getParent() {
return null;
}

}

0 comments on commit 4dccb6e

Please sign in to comment.