simplified assertions and removed unthrown exceptions

This commit is contained in:
Stefan Spieker committed 2019-10-13 20:42:29 +02:00
1 parent ab46f02bb4
commit 02fa8003c0
7 files changed
+53 -56

No files matched your search

+1 -1
View File
@@ -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) {