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
b0aa22d3
Unverified
Commit
b0aa22d3
authored
Mar 23, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✅
修复单元测试
parent
1124b892
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
+5
-4
src/main/java/org/b3log/solo/SoloServletListener.java
src/main/java/org/b3log/solo/SoloServletListener.java
+1
-0
src/main/webapp/common-template/macro-common_page.ftl
src/main/webapp/common-template/macro-common_page.ftl
+1
-1
src/test/java/org/b3log/solo/MockHttpServletRequest.java
src/test/java/org/b3log/solo/MockHttpServletRequest.java
+1
-1
src/test/java/org/b3log/solo/processor/IndexProcessorTestCase.java
...java/org/b3log/solo/processor/IndexProcessorTestCase.java
+1
-1
src/test/java/org/b3log/solo/processor/TagProcessorTestCase.java
...t/java/org/b3log/solo/processor/TagProcessorTestCase.java
+1
-1
No files found.
src/main/java/org/b3log/solo/SoloServletListener.java
View file @
b0aa22d3
...
...
@@ -406,6 +406,7 @@ public final class SoloServletListener extends AbstractServletListener {
final
OtherConsole
otherConsole
=
beanManager
.
getReference
(
OtherConsole
.
class
);
DispatcherServlet
.
delete
(
"/console/archive/unused"
,
otherConsole:
:
removeUnusedArchives
);
DispatcherServlet
.
delete
(
"/console/tag/unused"
,
otherConsole:
:
removeUnusedTags
);
final
UserConsole
userConsole
=
beanManager
.
getReference
(
UserConsole
.
class
);
DispatcherServlet
.
put
(
"/console/user/"
,
userConsole:
:
updateUser
);
...
...
src/main/webapp/common-template/macro-common_page.ftl
View file @
b0aa22d3
...
...
@@ -23,7 +23,7 @@
<html>
<head>
<
#if
!
blogTitle
??
>
<
#assign
blogTitle =
welcomeToSoloLabel
>
<
#assign
blogTitle =
"Solo"
>
</
#
if>
<
@
head
title=
"${title} - ${blogTitle}"
>
<link
type=
"text/css"
rel=
"stylesheet"
...
...
src/test/java/org/b3log/solo/MockHttpServletRequest.java
View file @
b0aa22d3
...
...
@@ -145,7 +145,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@Override
public
String
getQueryString
()
{
throw
new
UnsupportedOperationException
(
"Not supported yet."
)
;
return
""
;
}
@Override
...
...
src/test/java/org/b3log/solo/processor/IndexProcessorTestCase.java
View file @
b0aa22d3
...
...
@@ -49,7 +49,7 @@ public class IndexProcessorTestCase extends AbstractTestCase {
mockDispatcherServletService
(
request
,
response
);
final
String
content
=
response
.
body
();
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>欢迎使用!</title>"
));
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>欢迎使用!
- Solo
</title>"
));
}
/**
...
...
src/test/java/org/b3log/solo/processor/TagProcessorTestCase.java
View file @
b0aa22d3
...
...
@@ -58,6 +58,6 @@ public class TagProcessorTestCase extends AbstractTestCase {
mockDispatcherServletService
(
request
,
response
);
final
String
content
=
response
.
body
();
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>Solo - Solo 的个人博客</title>"
));
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>Solo
标签
- Solo 的个人博客</title>"
));
}
}
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