@@ -289,7 +289,7 @@ public void testThatAUrlWithVariablesFromAndToCanBeInvoked() throws Exception {
289
289
.getPullRequest () //
290
290
) //
291
291
.triggerButton ("The Button" ) //
292
- .invokedUrl (1 , "http://bjurr.se/10The%20Button%20Text " );
292
+ .invokedUrl (1 , "http://bjurr.se/10The+Button+Text " );
293
293
}
294
294
}
295
295
@@ -333,7 +333,7 @@ public void testThatAUrlWithCommentVariableHasSpacesReplaced() throws Exception
333
333
.withCommentText ("a text with\n newline" ) //
334
334
.build () //
335
335
) //
336
- .invokedUrl (0 , "http://bjurr.se/a%20text%20with%20newline " );
336
+ .invokedUrl (0 , "http://bjurr.se/a+text+with%0Anewline " );
337
337
}
338
338
339
339
@ Test
@@ -358,7 +358,7 @@ public void testThatAUrlWithVariableFromBranchCanBeInvokedWhenBranchIdContainsSl
358
358
.withPullRequestAction (OPENED ) //
359
359
.build () //
360
360
) //
361
- .invokedUrl (0 , "http://bjurr.se/feature/branchmodmerge " );
361
+ .invokedUrl (0 , "http://bjurr.se/feature%2Fbranchmodmerge " );
362
362
}
363
363
364
364
@ Test
@@ -426,7 +426,7 @@ public void testThatAUrlWithVariablesExceptFromAndToCanBeInvoked() throws Except
426
426
) //
427
427
.invokedUrl (
428
428
0 ,
429
- "http://bjurr.se/id=10&action=OPENED&displayName=authorDisplayName&authorEmail=authorEmail&authorId=100&authorName=authorName&authorSlug=authorSlug&pullRequestUrl=http://bitbucket .server/projects/theProject/repos/theRepoName/pull -requests/10 " //
429
+ "http://bjurr.se/id=10&action=OPENED&displayName=authorDisplayName&authorEmail=authorEmail&authorId=100&authorName=authorName&authorSlug=authorSlug&pullRequestUrl=http%3A%2F%2Fbitbucket .server%2Fprojects%2FtheProject%2Frepos%2FtheRepoName%2Fpull -requests%2F10 " //
430
430
);
431
431
}
432
432
@@ -889,7 +889,7 @@ public void testThatFilterCanBeUsedWithComments() throws Exception {
889
889
.withPullRequestAction (COMMENTED ) //
890
890
.build () //
891
891
) //
892
- .invokedUrl (0 , "http://bjurr.se/?comment=keyword%20A%20nice%20comment &version=0" ); //
892
+ .invokedUrl (0 , "http://bjurr.se/?comment=keyword+A+nice+comment &version=0" ); //
893
893
}
894
894
895
895
@ Test
@@ -922,7 +922,7 @@ public void testThatFilterCanBeUsedWithCommentsAndSpecialEscapedChars() throws E
922
922
.withPullRequestAction (COMMENTED ) //
923
923
.build () //
924
924
) //
925
- .invokedUrl ( 0 , "http://bjurr.se/?comment=%20keyword%20 &version=0" );
925
+ .invokedOnlyUrl ( "http://bjurr.se/?comment=+keyword+ &version=0" );
926
926
}
927
927
928
928
@ Test
@@ -1430,7 +1430,7 @@ public void testThatButtonCanBeUsedForTriggeringEvent() throws Exception {
1430
1430
) //
1431
1431
.store () //
1432
1432
.triggerButton ("Button Form" ) //
1433
- .invokedOnlyUrl ("http://bjurr.se/Trigger%20notification " ) //
1433
+ .invokedOnlyUrl ("http://bjurr.se/Trigger+notification " ) //
1434
1434
.hasButtonsEnabled ("Button Form" );
1435
1435
}
1436
1436
@@ -1512,7 +1512,7 @@ public void testThatEventTriggeredByButtonCanBeFiltered() throws Exception {
1512
1512
) //
1513
1513
.store () //
1514
1514
.triggerButton ("Button Form" ) //
1515
- .invokedOnlyUrl ("http://bjurr.se/?123=button%20text%20123 " );
1515
+ .invokedOnlyUrl ("http://bjurr.se/?123=button+text+123 " );
1516
1516
}
1517
1517
1518
1518
@ Test
@@ -1547,7 +1547,7 @@ public void testThatEventTriggeredByButtonCanBeIgnoredByFilterWhileAnotherIsNotI
1547
1547
) //
1548
1548
.store () //
1549
1549
.triggerButton ("Button Form" ) //
1550
- .invokedOnlyUrl ("http://bjurr.se/?123=button%20text%20123 " );
1550
+ .invokedOnlyUrl ("http://bjurr.se/?123=button+text+123 " );
1551
1551
}
1552
1552
1553
1553
@ Test
@@ -1578,8 +1578,8 @@ public void testThatEventTriggeredByButtonCanResultInSeveralNotifications() thro
1578
1578
.withFieldValue (button_visibility , EVERYONE .name ()).build ()) //
1579
1579
.store () //
1580
1580
.triggerButton ("Button Form" ) //
1581
- .invokedUrl (0 , "http://bjurr.se/?123=button%20text%20123 " ) //
1582
- .invokedUrl (1 , "http://bjurr.se/?456=button%20text%20123 " );
1581
+ .invokedUrl (0 , "http://bjurr.se/?123=button+text+123 " ) //
1582
+ .invokedUrl (1 , "http://bjurr.se/?456=button+text+123 " );
1583
1583
}
1584
1584
1585
1585
@ Test
@@ -1613,9 +1613,9 @@ public void testThatThereCanBeSeveralButtons() throws Exception {
1613
1613
) //
1614
1614
.store () //
1615
1615
.triggerButton ("Button Form 1" ) //
1616
- .invokedUrl (0 , "http://bjurr.se/?button%20text%201 " ) //
1616
+ .invokedUrl (0 , "http://bjurr.se/?button+text+1 " ) //
1617
1617
.triggerButton ("Button Form 2" ) //
1618
- .invokedUrl (1 , "http://bjurr.se/?button%20text%202 " );
1618
+ .invokedUrl (1 , "http://bjurr.se/?button+text+2 " );
1619
1619
}
1620
1620
1621
1621
@ Test
@@ -1637,7 +1637,7 @@ public void testThatValueFromUrlCanBeUsedInInvocation() throws Exception {
1637
1637
.withPullRequestAction (OPENED ) //
1638
1638
.build () //
1639
1639
) //
1640
- .invokedOnlyUrl ("http://bjurr.se/?some%20content " );
1640
+ .invokedOnlyUrl ("http://bjurr.se/?some+content " );
1641
1641
}
1642
1642
1643
1643
@ Test
0 commit comments