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
48651cfb
Unverified
Commit
48651cfb
authored
Feb 22, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💚
修复测试用例
parent
6ebb9801
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
12 deletions
+20
-12
pom.xml
pom.xml
+9
-1
src/test/java/org/b3log/solo/processor/ArticleProcessorTestCase.java
...va/org/b3log/solo/processor/ArticleProcessorTestCase.java
+2
-2
src/test/java/org/b3log/solo/processor/ErrorProcessorTestCase.java
...java/org/b3log/solo/processor/ErrorProcessorTestCase.java
+2
-2
src/test/java/org/b3log/solo/processor/IndexProcessorTestCase.java
...java/org/b3log/solo/processor/IndexProcessorTestCase.java
+2
-2
src/test/java/org/b3log/solo/processor/console/AdminConsoleTestCase.java
...rg/b3log/solo/processor/console/AdminConsoleTestCase.java
+2
-2
src/test/resources/latke.properties
src/test/resources/latke.properties
+3
-3
No files found.
pom.xml
View file @
48651cfb
...
...
@@ -254,6 +254,15 @@
</resource>
</resources>
<testResources>
<testResource>
<directory>
src/main/webapp
</directory>
</testResource>
<testResource>
<directory>
src/test/resources
</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>
org.eluder.coveralls
</groupId>
...
...
@@ -283,7 +292,6 @@
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
${maven-surefire-plugin.version}
</version>
<configuration>
<additionalClasspathElements>
src/main/webapp
</additionalClasspathElements>
<useSystemClassLoader>
false
</useSystemClassLoader>
</configuration>
</plugin>
...
...
src/test/java/org/b3log/solo/processor/ArticleProcessorTestCase.java
View file @
48651cfb
...
...
@@ -34,7 +34,7 @@ import org.testng.annotations.Test;
* {@link ArticleProcessor} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.1.
3, Oct 28, 2018
* @version 1.0.1.
4, Feb 22, 2019
* @since 1.7.0
*/
@Test
(
suiteName
=
"processor"
)
...
...
@@ -223,7 +223,7 @@ public class ArticleProcessorTestCase extends AbstractTestCase {
mockDispatcherServletService
(
request
,
response
);
final
String
content
=
response
.
body
();
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>
Solo 的个人博客 - 访问密码
</title>"
));
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>
访问密码 - Solo 的个人博客
</title>"
));
}
/**
...
...
src/test/java/org/b3log/solo/processor/ErrorProcessorTestCase.java
View file @
48651cfb
...
...
@@ -28,7 +28,7 @@ import org.testng.annotations.Test;
* {@link ErrorProcessor} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.1.
2, Nov 28, 2018
* @version 1.0.1.
3, Feb 22, 2019
* @since 1.7.0
*/
@Test
(
suiteName
=
"processor"
)
...
...
@@ -55,6 +55,6 @@ public class ErrorProcessorTestCase extends AbstractTestCase {
mockDispatcherServletService
(
request
,
response
);
final
String
content
=
response
.
body
();
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>
Solo 的个人博客 - 403 Forbidden!
</title>"
));
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>
403 Forbidden! - Solo 的个人博客
</title>"
));
}
}
src/test/java/org/b3log/solo/processor/IndexProcessorTestCase.java
View file @
48651cfb
...
...
@@ -32,7 +32,7 @@ import java.util.List;
* {@link IndexProcessor} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.1.
3, Feb 7
, 2019
* @version 1.0.1.
4, Feb 22
, 2019
* @since 1.7.0
*/
@Test
(
suiteName
=
"processor"
)
...
...
@@ -87,7 +87,7 @@ public class IndexProcessorTestCase extends AbstractTestCase {
mockDispatcherServletService
(
request
,
response
);
final
String
content
=
response
.
body
();
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>
Solo 的个人博客 - 403 Forbidden!
</title>"
));
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"<title>
Kill IE! - Solo 的个人博客
</title>"
));
}
/**
...
...
src/test/java/org/b3log/solo/processor/console/AdminConsoleTestCase.java
View file @
48651cfb
...
...
@@ -28,7 +28,7 @@ import org.testng.annotations.Test;
* {@link AdminConsole} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
1, Dec 7, 2018
* @version 1.0.0.
2, Feb 22, 2019
* @since 2.9.7
*/
@Test
(
suiteName
=
"processor"
)
...
...
@@ -95,7 +95,7 @@ public class AdminConsoleTestCase extends AbstractTestCase {
mockDispatcherServletService
(
request
,
response
);
final
String
content
=
response
.
body
();
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"
<div id=\"tabPreference\" class=\"sub-tabs fn-clear\">
"
));
Assert
.
assertTrue
(
StringUtils
.
contains
(
content
,
"
信息配置
"
));
}
/**
...
...
src/test/resources/latke.properties
View file @
48651cfb
...
...
@@ -18,7 +18,7 @@
#
# Description: B3log Latke configurations for test.
# Version: 1.0.0.
0, Feb 14
, 2019
# Version: 1.0.0.
1, Feb 22
, 2019
# Author: Liang Ding
#
...
...
@@ -35,5 +35,5 @@ cookieName=solo
cookieSecret
=
Beyond
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#
runtimeMode=PRODUCTION
#
runtimeMode=DEVELOPMENT
runtimeMode
=
PRODUCTION
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