File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
src/test/java/org/swordapp/server Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .swordapp .server ;
2
+
3
+ public class SwordTestConfiguration implements SwordConfiguration {
4
+ public boolean returnDepositReceipt () {
5
+ return true ;
6
+ }
7
+
8
+ public boolean returnStackTraceInError () {
9
+ return true ;
10
+ }
11
+
12
+ public boolean returnErrorBody () {
13
+ return true ;
14
+ }
15
+
16
+ public String generator () {
17
+ return "http://www.swordapp.org/" ;
18
+ }
19
+
20
+ public String generatorVersion () {
21
+ return "2.0" ;
22
+ }
23
+
24
+ public String administratorEmail () {
25
+
26
+ }
27
+
28
+ public String getAuthType () {
29
+ return "None" ;
30
+ }
31
+
32
+ public boolean storeAndCheckBinary () {
33
+ return true ;
34
+ }
35
+
36
+ public String getTempDirectory () {
37
+ return System .getProperty ("java.io.tmpdir" );
38
+ }
39
+
40
+ public int getMaxUploadSize () {
41
+ return 1024 ;
42
+ }
43
+
44
+ public String getAlternateUrl () {
45
+ return "https://example.org" ;
46
+ }
47
+
48
+ public String getAlternateUrlContentType () {
49
+ return "text/html" ;
50
+ }
51
+
52
+ public boolean allowUnauthenticatedMediaAccess () {
53
+ return false ;
54
+ }
55
+ }
You can’t perform that action at this time.
0 commit comments