Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
31843219
Unverified
Commit
31843219
authored
Apr 19, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12764
parent
71d51115
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/test/java/org/b3log/solo/repository/CommentRepositoryImplTestCase.java
.../b3log/solo/repository/CommentRepositoryImplTestCase.java
+0
-2
src/test/java/org/b3log/solo/repository/PageRepositoryImplTestCase.java
...org/b3log/solo/repository/PageRepositoryImplTestCase.java
+2
-2
No files found.
src/test/java/org/b3log/solo/repository/CommentRepositoryImplTestCase.java
View file @
31843219
...
...
@@ -66,7 +66,5 @@ public class CommentRepositoryImplTestCase extends AbstractTestCase {
Assert
.
assertEquals
(
comments
.
size
(),
1
);
Assert
.
assertEquals
(
commentRepository
.
getComments
(
"not found"
,
1
,
Integer
.
MAX_VALUE
).
size
(),
0
);
Assert
.
assertEquals
(
commentRepository
.
getRecentComments
(
3
).
size
(),
1
);
}
}
src/test/java/org/b3log/solo/repository/PageRepositoryImplTestCase.java
View file @
31843219
...
...
@@ -73,7 +73,7 @@ public class PageRepositoryImplTestCase extends AbstractTestCase {
public
void
getByPermalink
()
throws
Exception
{
final
PageRepository
pageRepository
=
getPageRepository
();
final
JSONObject
page1
=
pageRepository
.
getByPermalink
(
"page1 permalink
"
);
final
JSONObject
page1
=
pageRepository
.
getByPermalink
(
Latkes
.
getServePath
()
+
"/p1
"
);
Assert
.
assertNotNull
(
page1
);
Assert
.
assertEquals
(
page1
.
getString
(
Page
.
PAGE_TITLE
),
"page1 title"
);
...
...
@@ -124,7 +124,7 @@ public class PageRepositoryImplTestCase extends AbstractTestCase {
pageRepository
.
add
(
page
);
transaction
.
commit
();
final
JSONObject
page2
=
pageRepository
.
getByPermalink
(
"page2 permalink
"
);
final
JSONObject
page2
=
pageRepository
.
getByPermalink
(
Latkes
.
getServePath
()
+
"/p2
"
);
Assert
.
assertNotNull
(
page2
);
final
JSONObject
page1
=
pageRepository
.
getUpper
(
page2
.
getString
(
Keys
.
OBJECT_ID
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment