@@ -292,7 +292,7 @@ public void testThatAUrlWithVariablesFromAndToCanBeInvoked() throws Exception {
292
292
.getPullRequest () //
293
293
) //
294
294
.triggerButton ("The Button" ) //
295
- .invokedUrl (1 , "http://bjurr.se/10The%20Button%20Text " );
295
+ .invokedUrl (1 , "http://bjurr.se/10The+Button+Text " );
296
296
}
297
297
}
298
298
@@ -336,7 +336,7 @@ public void testThatAUrlWithCommentVariableHasSpacesReplaced() throws Exception
336
336
.withCommentText ("a text with\n newline" ) //
337
337
.build () //
338
338
) //
339
- .invokedUrl (0 , "http://bjurr.se/a%20text%20with%20newline " );
339
+ .invokedUrl (0 , "http://bjurr.se/a+text+with%0Anewline " );
340
340
}
341
341
342
342
@ Test
@@ -361,7 +361,7 @@ public void testThatAUrlWithVariableFromBranchCanBeInvokedWhenBranchIdContainsSl
361
361
.withPullRequestAction (OPENED ) //
362
362
.build () //
363
363
) //
364
- .invokedUrl (0 , "http://bjurr.se/feature/branchmodmerge " );
364
+ .invokedUrl (0 , "http://bjurr.se/feature%2Fbranchmodmerge " );
365
365
}
366
366
367
367
@ Test
@@ -429,7 +429,7 @@ public void testThatAUrlWithVariablesExceptFromAndToCanBeInvoked() throws Except
429
429
) //
430
430
.invokedUrl (
431
431
0 ,
432
- "http://bjurr.se/id=10&action=OPENED&displayName=authorDisplayName&authorEmail=authorEmail&authorId=100&authorName=authorName&authorSlug=authorSlug&pullRequestUrl=http://stash .server/projects/theProject/repos/theRepoName/pull -requests/10 " //
432
+ "http://bjurr.se/id=10&action=OPENED&displayName=authorDisplayName&authorEmail=authorEmail&authorId=100&authorName=authorName&authorSlug=authorSlug&pullRequestUrl=http%3A%2F%2Fstash .server%2Fprojects%2FtheProject%2Frepos%2FtheRepoName%2Fpull -requests%2F10 " //
433
433
);
434
434
}
435
435
@@ -892,7 +892,7 @@ public void testThatFilterCanBeUsedWithComments() throws Exception {
892
892
.withPullRequestAction (COMMENTED ) //
893
893
.build () //
894
894
) //
895
- .invokedUrl (0 , "http://bjurr.se/?comment=keyword%20A%20nice%20comment &version=0" ); //
895
+ .invokedUrl (0 , "http://bjurr.se/?comment=keyword+A+nice+comment &version=0" ); //
896
896
}
897
897
898
898
@ Test
@@ -925,7 +925,7 @@ public void testThatFilterCanBeUsedWithCommentsAndSpecialEscapedChars() throws E
925
925
.withPullRequestAction (COMMENTED ) //
926
926
.build () //
927
927
) //
928
- .invokedUrl (0 , "http://bjurr.se/?comment=%20keyword%20 &version=0" );
928
+ .invokedUrl (0 , "http://bjurr.se/?comment=+keyword+ &version=0" );
929
929
}
930
930
931
931
@ Test
@@ -1433,7 +1433,7 @@ public void testThatButtonCanBeUsedForTriggeringEvent() throws Exception {
1433
1433
) //
1434
1434
.store () //
1435
1435
.triggerButton ("Button Form" ) //
1436
- .invokedOnlyUrl ("http://bjurr.se/Trigger%20notification " ) //
1436
+ .invokedOnlyUrl ("http://bjurr.se/Trigger+notification " ) //
1437
1437
.hasButtonsEnabled ("Button Form" );
1438
1438
}
1439
1439
@@ -1515,7 +1515,7 @@ public void testThatEventTriggeredByButtonCanBeFiltered() throws Exception {
1515
1515
) //
1516
1516
.store () //
1517
1517
.triggerButton ("Button Form" ) //
1518
- .invokedOnlyUrl ("http://bjurr.se/?123=button%20text%20123 " );
1518
+ .invokedOnlyUrl ("http://bjurr.se/?123=button+text+123 " );
1519
1519
}
1520
1520
1521
1521
@ Test
@@ -1550,7 +1550,7 @@ public void testThatEventTriggeredByButtonCanBeIgnoredByFilterWhileAnotherIsNotI
1550
1550
) //
1551
1551
.store () //
1552
1552
.triggerButton ("Button Form" ) //
1553
- .invokedOnlyUrl ("http://bjurr.se/?123=button%20text%20123 " );
1553
+ .invokedOnlyUrl ("http://bjurr.se/?123=button+text+123 " );
1554
1554
}
1555
1555
1556
1556
@ Test
@@ -1581,8 +1581,8 @@ public void testThatEventTriggeredByButtonCanResultInSeveralNotifications() thro
1581
1581
.withFieldValue (button_visibility , EVERYONE .name ()).build ()) //
1582
1582
.store () //
1583
1583
.triggerButton ("Button Form" ) //
1584
- .invokedUrl (0 , "http://bjurr.se/?123=button%20text%20123 " ) //
1585
- .invokedUrl (1 , "http://bjurr.se/?456=button%20text%20123 " );
1584
+ .invokedUrl (0 , "http://bjurr.se/?123=button+text+123 " ) //
1585
+ .invokedUrl (1 , "http://bjurr.se/?456=button+text+123 " );
1586
1586
}
1587
1587
1588
1588
@ Test
@@ -1616,9 +1616,9 @@ public void testThatThereCanBeSeveralButtons() throws Exception {
1616
1616
) //
1617
1617
.store () //
1618
1618
.triggerButton ("Button Form 1" ) //
1619
- .invokedUrl (0 , "http://bjurr.se/?button%20text%201 " ) //
1619
+ .invokedUrl (0 , "http://bjurr.se/?button+text+1 " ) //
1620
1620
.triggerButton ("Button Form 2" ) //
1621
- .invokedUrl (1 , "http://bjurr.se/?button%20text%202 " );
1621
+ .invokedUrl (1 , "http://bjurr.se/?button+text+2 " );
1622
1622
}
1623
1623
1624
1624
@ Test
@@ -1640,7 +1640,7 @@ public void testThatValueFromUrlCanBeUsedInInvocation() throws Exception {
1640
1640
.withPullRequestAction (OPENED ) //
1641
1641
.build () //
1642
1642
) //
1643
- .invokedOnlyUrl ("http://bjurr.se/?some%20content " );
1643
+ .invokedOnlyUrl ("http://bjurr.se/?some+content " );
1644
1644
}
1645
1645
1646
1646
@ Test
0 commit comments