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
7073122c
Commit
7073122c
authored
Jul 22, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
Clean code
parent
5f7c075c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/test/java/org/b3log/solo/service/PreferenceQueryServiceTestCase.java
...rg/b3log/solo/service/PreferenceQueryServiceTestCase.java
+3
-6
No files found.
src/test/java/org/b3log/solo/service/PreferenceQueryServiceTestCase.java
View file @
7073122c
...
@@ -58,8 +58,7 @@ public class PreferenceQueryServiceTestCase extends AbstractTestCase {
...
@@ -58,8 +58,7 @@ public class PreferenceQueryServiceTestCase extends AbstractTestCase {
*/
*/
@Test
(
dependsOnMethods
=
"init"
)
@Test
(
dependsOnMethods
=
"init"
)
public
void
getPreference
()
throws
Exception
{
public
void
getPreference
()
throws
Exception
{
final
PreferenceQueryService
preferenceQueryService
final
PreferenceQueryService
preferenceQueryService
=
getPreferenceQueryService
();
=
getPreferenceQueryService
();
final
JSONObject
preference
=
preferenceQueryService
.
getPreference
();
final
JSONObject
preference
=
preferenceQueryService
.
getPreference
();
Assert
.
assertEquals
(
preference
.
getString
(
Option
.
ID_C_BLOG_TITLE
),
Option
.
DefaultPreference
.
DEFAULT_BLOG_TITLE
);
Assert
.
assertEquals
(
preference
.
getString
(
Option
.
ID_C_BLOG_TITLE
),
Option
.
DefaultPreference
.
DEFAULT_BLOG_TITLE
);
...
@@ -72,10 +71,8 @@ public class PreferenceQueryServiceTestCase extends AbstractTestCase {
...
@@ -72,10 +71,8 @@ public class PreferenceQueryServiceTestCase extends AbstractTestCase {
*/
*/
@Test
(
dependsOnMethods
=
"init"
)
@Test
(
dependsOnMethods
=
"init"
)
public
void
getReplyNotificationTemplate
()
throws
Exception
{
public
void
getReplyNotificationTemplate
()
throws
Exception
{
final
PreferenceQueryService
preferenceQueryService
final
PreferenceQueryService
preferenceQueryService
=
getPreferenceQueryService
();
=
getPreferenceQueryService
();
final
JSONObject
replyNotificationTemplate
=
preferenceQueryService
.
getReplyNotificationTemplate
();
final
JSONObject
replyNotificationTemplate
=
preferenceQueryService
.
getReplyNotificationTemplate
();
Assert
.
assertEquals
(
replyNotificationTemplate
.
toString
(),
Option
.
DefaultPreference
.
DEFAULT_REPLY_NOTIFICATION_TEMPLATE
);
Assert
.
assertEquals
(
replyNotificationTemplate
.
toString
(),
Option
.
DefaultPreference
.
DEFAULT_REPLY_NOTIFICATION_TEMPLATE
);
}
}
...
...
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