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
4209deba
Commit
4209deba
authored
10 years ago
by
tmortagne
Browse files
Options
Downloads
Patches
Plain Diff
[misc] Fix test
parent
9c790766
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-api/src/test/java/org/xwiki/search/solr/script/SolrIndexScriptServiceTest.java
+3
-5
3 additions, 5 deletions
.../xwiki/search/solr/script/SolrIndexScriptServiceTest.java
with
3 additions
and
5 deletions
xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-api/src/test/java/org/xwiki/search/solr/script/SolrIndexScriptServiceTest.java
+
3
−
5
View file @
4209deba
...
...
@@ -41,7 +41,6 @@
import
org.xwiki.model.reference.EntityReference
;
import
org.xwiki.model.reference.SpaceReference
;
import
org.xwiki.model.reference.WikiReference
;
import
org.xwiki.search.solr.script.SolrIndexScriptService
;
import
org.xwiki.security.authorization.AuthorizationManager
;
import
org.xwiki.security.authorization.Right
;
import
org.xwiki.test.mockito.MockitoComponentMockingRule
;
...
...
@@ -80,10 +79,6 @@ public class SolrIndexScriptServiceTest
@Before
public
void
setUp
()
throws
Exception
{
this
.
service
=
mocker
.
getComponentUnderTest
();
this
.
logger
=
mocker
.
getMockedLogger
();
this
.
userReference
=
new
DocumentReference
(
"wiki"
,
"space"
,
"user"
);
// Context
...
...
@@ -107,7 +102,10 @@ public void setUp() throws Exception
when
(
mockAuthorization
.
hasAccess
(
any
(
Right
.
class
),
any
(
DocumentReference
.
class
),
any
(
EntityReference
.
class
)))
.
thenReturn
(
true
);
this
.
service
=
mocker
.
getComponentUnderTest
();
// Rights check success. By default we are allowed (no error is thrown)
this
.
logger
=
mocker
.
getMockedLogger
();
verify
(
this
.
logger
,
never
()).
error
(
anyString
(),
any
(
IllegalAccessException
.
class
));
}
...
...
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