1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.chemistry.opencmis.fit.tck;
20
21 import java.util.Map;
22
23 import org.apache.chemistry.opencmis.commons.SessionParameter;
24 import org.apache.chemistry.opencmis.commons.enums.BindingType;
25
26 public abstract class AbstractAtomPubTckIT extends AbstractTckIT {
27
28 public abstract String getAtomPubPath();
29
30 @Override
31 public Map<String, String> getSessionParameters() {
32 Map<String, String> parameters = getBaseSessionParameters();
33
34 String url = "http://" + HOST + ":" + getPort() + getAtomPubPath();
35
36 parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
37 parameters.put(SessionParameter.ATOMPUB_URL, url);
38
39 return parameters;
40 }
41
42 @Override
43 public BindingType getBindingType() {
44 return BindingType.ATOMPUB;
45 }
46 }