mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
simplified assertions and removed unthrown exceptions
This commit is contained in:
1 parent
ab46f02bb4
commit
02fa8003c0
7 files changed
+53
-56
No files matched your search
@@ -280,7 +280,7 @@ public class FunctionsTest {
|
||||
@Test
|
||||
@PrepareForTest(Stapler.class)
|
||||
public void testGetActionUrl_unparseable() throws Exception{
|
||||
assertEquals(null, Functions.getActionUrl(null, createMockAction("http://example.net/stuff?something=^woohoo")));
|
||||
assertNull(Functions.getActionUrl(null, createMockAction("http://example.net/stuff?something=^woohoo")));
|
||||
}
|
||||
|
||||
private static Action createMockAction(String uri) {
|
||||
|
||||
Reference in new issue
Block a user