Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
264d0e17
Commit
264d0e17
authored
2 years ago
by
Thomas Mortagne
Browse files
Options
Downloads
Patches
Plain Diff
[misc] Improve test setup
parent
ba89bc64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-captcha/xwiki-platform-captcha-jcaptcha/xwiki-platform-captcha-jcaptcha-api/src/test/java/org/xwiki/captcha/internal/JCaptchaResourceReferenceSerializerTest.java
+4
-4
4 additions, 4 deletions
...cha/internal/JCaptchaResourceReferenceSerializerTest.java
with
4 additions
and
4 deletions
xwiki-platform-core/xwiki-platform-captcha/xwiki-platform-captcha-jcaptcha/xwiki-platform-captcha-jcaptcha-api/src/test/java/org/xwiki/captcha/internal/JCaptchaResourceReferenceSerializerTest.java
+
4
−
4
View file @
264d0e17
...
...
@@ -50,7 +50,7 @@
* @since 11.10
*/
@ComponentTest
public
class
JCaptchaResourceReferenceSerializerTest
class
JCaptchaResourceReferenceSerializerTest
{
@InjectMockComponents
private
JCaptchaResourceReferenceSerializer
jCaptchaResourceReferenceSerializer
;
...
...
@@ -60,13 +60,13 @@ public class JCaptchaResourceReferenceSerializerTest
private
URLNormalizer
<
ExtendedURL
>
extendedURLNormalizer
;
@BeforeEach
private
void
setup
()
void
setup
()
{
when
(
extendedURLNormalizer
.
normalize
(
any
())).
then
(
returnsFirstArg
());
}
@Test
public
void
serialize
()
throws
UnsupportedResourceReferenceException
,
SerializeResourceReferenceException
void
serialize
()
throws
UnsupportedResourceReferenceException
,
SerializeResourceReferenceException
{
JCaptchaResourceReference
jCaptchaResourceReference
=
new
JCaptchaResourceReference
(
"fooType"
,
"barEngine"
);
ExtendedURL
extendedURL
=
jCaptchaResourceReferenceSerializer
.
serialize
(
jCaptchaResourceReference
);
...
...
@@ -81,7 +81,7 @@ public void serialize() throws UnsupportedResourceReferenceException, SerializeR
}
@Test
public
void
serializeWithParameters
()
void
serializeWithParameters
()
throws
UnsupportedResourceReferenceException
,
SerializeResourceReferenceException
{
JCaptchaResourceReference
jCaptchaResourceReference
=
new
JCaptchaResourceReference
(
"bar"
,
"foo"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment