Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dav4jvm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
bitfire web engineering
dav4jvm
Commits
4272709f
Commit
4272709f
authored
Sep 10, 2017
by
Ricki Hirner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests
parent
b9e58df7
Pipeline
#11615750
passed with stage
in 1 minute and 47 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
HttpException.kt
...in/java/at/bitfire/dav4android/exception/HttpException.kt
+1
-1
HttpExceptionTest.java
...a/at/bitfire/dav4android/exception/HttpExceptionTest.java
+2
-2
No files found.
src/main/java/at/bitfire/dav4android/exception/HttpException.kt
View file @
4272709f
...
...
@@ -15,7 +15,7 @@ import java.io.*
open
class
HttpException
:
Exception
,
Serializable
{
// don't dump more than
1
0 kB
// don't dump more than
2
0 kB
private
val
MAX_DUMP_SIZE
=
20
*
1024
val
status
:
Int
...
...
src/test/java/at/bitfire/dav4android/exception/HttpExceptionTest.java
View file @
4272709f
...
...
@@ -41,8 +41,8 @@ public class HttpExceptionTest {
HttpException
e
=
new
HttpException
(
response
);
assertTrue
(
e
.
getMessage
().
contains
(
"500"
));
assertTrue
(
e
.
getMessage
().
contains
(
responseMessage
));
assertTrue
(
e
.
getRequest
().
contains
(
"REQUEST
[LF]
\nBODY[05]"
));
assertTrue
(
e
.
getResponse
().
contains
(
"[99]SERVER
[CR][LF]
\nRESPONSE"
));
assertTrue
(
e
.
getRequest
().
contains
(
"REQUEST\nBODY[05]"
));
assertTrue
(
e
.
getResponse
().
contains
(
"[99]SERVER
↵
\nRESPONSE"
));
}
}
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