gvsig-projects-pool / org.gvsig.vcsgis / trunk / org.gvsig.vcsgis / org.gvsig.vcsgis.lib / org.gvsig.vcsgis.lib.impl / src / test / resources / org / gvsig / vcsgis / lib / impl / expecteds / S02Commit.txt @ 3458
History | View | Annotate | Download (8.88 KB)
1 |
|
---|---|
2 |
@rem ---------------------------------------------------------------- |
3 |
@rem TestS02Commit.java |
4 |
@rem Values to check request and response of commit request |
5 |
@rem ---------------------------------------------------------------- |
6 |
|
7 |
@begin request |
8 |
@rem The client request of a commit request for this test |
9 |
{ |
10 |
"Parameters":{ |
11 |
"EfectiveDate":null, |
12 |
"RevisionDate":null, |
13 |
"Comment":null, |
14 |
"Entities":[ |
15 |
{ |
16 |
"DataTableName":"VCSGIS_DATA", |
17 |
"Description":null, |
18 |
"EntityCode":"00000000000004abcdef0123456789", |
19 |
"EntityName":"test", |
20 |
"FeatureIdFieldName":"VCSGISCODE", |
21 |
"FeatureTypeAsJson":"\n{\n \"__classname__\":\"org.gvsig.fmap.dal.feature.impl.DefaultFeatureType\",\n \"id\":\"testSource2\",\n \"internalID\":\"7c54a6bc\",\n \"label\":null,\n \"description\":null,\n \"allowAtomaticValues\":false,\n \"hasOID\":false,\n \"defaultGeometryAttributeName\":null,\n \"defaultTimeAttributeName\":null,\n \"tags\":{\n \"__classname__\":\"org.gvsig.tools.dynobject.impl.DefaultTags\"\n },\n \"extraColumns\":{\n \"__classname__\":\"org.gvsig.fmap.dal.feature.impl.DefaultFeatureExtraColumns\",\n \"extraColumns\":[\n ]\n },\n \"descriptors\":[\n {\n \"__classname__\":\"org.gvsig.fmap.dal.feature.impl.DefaultFeatureAttributeDescriptor\",\n \"name\":\"id\",\n \"description\":null,\n \"label\":null,\n \"shortLabel\":null,\n \"order\":0,\n \"groupName\":null,\n \"dataType\":{\n \"__classname__\":\"org.gvsig.tools.dataTypes.impl.DefaultDataType\",\n \"name\":\"Integer\",\n \"type\":4,\n \"subtype\":null\n },\n \"size\":0,\n \"precision\":10,\n \"scale\":0,\n \"roundMode\":4,\n \"allowNull\":false,\n \"primaryKey\":false,\n \"readOnly\":false,\n \"isAutomatic\":false,\n \"isTime\":false,\n \"indexed\":true,\n \"isIndexAscending\":true,\n \"allowIndexDuplicateds\":false,\n \"hidden\":false,\n \"avoidCachingAvailableValues\":false,\n \"geometryType\":null,\n \"srs\":null,\n \"relationType\":0,\n \"displaySize\":0,\n \"locale\":{\n \"__classname__\":\"java.util.Locale\",\n \"languageTag\":\"en\"\n },\n \"expression\":null,\n \"availableValuesExpression\":null,\n \"defaultValue\":\"\",\n \"dataProfile\":null,\n \"tags\":{\n \"__classname__\":\"org.gvsig.tools.dynobject.impl.DefaultTags\"\n },\n \"availableValues\":null,\n \"additionalInfo\":null\n },\n {\n \"__classname__\":\"org.gvsig.fmap.dal.feature.impl.DefaultFeatureAttributeDescriptor\",\n \"name\":\"text\",\n \"description\":null,\n \"label\":null,\n \"shortLabel\":null,\n \"order\":10,\n \"groupName\":null,\n \"dataType\":{\n \"__classname__\":\"org.gvsig.tools.dataTypes.impl.DefaultDataType\",\n \"name\":\"String\",\n \"type\":8,\n \"subtype\":null\n },\n \"size\":100,\n \"precision\":-1,\n \"scale\":-1,\n \"roundMode\":4,\n \"allowNull\":true,\n \"primaryKey\":false,\n \"readOnly\":false,\n \"isAutomatic\":false,\n \"isTime\":false,\n \"indexed\":false,\n \"isIndexAscending\":true,\n \"allowIndexDuplicateds\":true,\n \"hidden\":false,\n \"avoidCachingAvailableValues\":false,\n \"geometryType\":null,\n \"srs\":null,\n \"relationType\":0,\n \"displaySize\":0,\n \"locale\":{\n \"__classname__\":\"java.util.Locale\",\n \"languageTag\":\"en\"\n },\n \"expression\":null,\n \"availableValuesExpression\":null,\n \"defaultValue\":\"\",\n \"dataProfile\":null,\n \"tags\":{\n \"__classname__\":\"org.gvsig.tools.dynobject.impl.DefaultTags\"\n },\n \"availableValues\":null,\n \"additionalInfo\":null\n },\n {\n \"__classname__\":\"org.gvsig.fmap.dal.feature.impl.DefaultFeatureAttributeDescriptor\",\n \"name\":\"VCSGISCODE\",\n \"description\":null,\n \"label\":\"VCSGIS Code\",\n \"shortLabel\":null,\n \"order\":20,\n \"groupName\":null,\n \"dataType\":{\n \"__classname__\":\"org.gvsig.tools.dataTypes.impl.DefaultDataType\",\n \"name\":\"String\",\n \"type\":8,\n \"subtype\":null\n },\n \"size\":40,\n \"precision\":-1,\n \"scale\":-1,\n \"roundMode\":4,\n \"allowNull\":true,\n \"primaryKey\":true,\n \"readOnly\":false,\n \"isAutomatic\":false,\n \"isTime\":false,\n \"indexed\":true,\n \"isIndexAscending\":true,\n \"allowIndexDuplicateds\":false,\n \"hidden\":false,\n \"avoidCachingAvailableValues\":false,\n \"geometryType\":null,\n \"srs\":null,\n \"relationType\":0,\n \"displaySize\":0,\n \"locale\":{\n \"__classname__\":\"java.util.Locale\",\n \"languageTag\":\"es-ES\"\n },\n \"expression\":null,\n \"availableValuesExpression\":null,\n \"defaultValue\":\"\",\n \"dataProfile\":null,\n \"tags\":{\n \"__classname__\":\"org.gvsig.tools.dynobject.impl.DefaultTags\"\n },\n \"availableValues\":null,\n \"additionalInfo\":null\n }\n ]\n}", |
22 |
"FieldForLabel":"text", |
23 |
"GeometryFieldName":null, |
24 |
"RevisionCode":null, |
25 |
"TopologyPlanCode":null, |
26 |
"UserCode":null, |
27 |
"Category":null, |
28 |
"Label":"test", |
29 |
"Autorizations":"{\n \"add\": [ \"*\" ],\n \"checkout\": [ \"*\" ],\n \"commit\": [ \"*\" ],\n \"entities\": [ \"*\" ],\n \"history\": [ \"*\" ],\n \"topologyplans\": [ \"*\" ],\n \"update\": [ \"*\" ],\n \"users\": [ \"*\" ],\n}", |
30 |
"TopologyPlanMode":0, |
31 |
"Resources":null, |
32 |
"DataModels":null, |
33 |
"LocalRevisionCode":null |
34 |
} |
35 |
], |
36 |
"NewEntityCodes":[ |
37 |
"00000000000004abcdef0123456789" |
38 |
] |
39 |
}, |
40 |
"Data":[ |
41 |
{ |
42 |
"Code":"00000000000007abcdef0123456789", |
43 |
"EntityCode":"00000000000004abcdef0123456789", |
44 |
"Operation":2, |
45 |
"RelatedFeatureCode":"00000000000006abcdef0123456789", |
46 |
"Data":"\n{\n \"id\":1,\n \"text\":\"AAA\",\n \"VCSGISCODE\":\"00000000000006abcdef0123456789\"\n}" |
47 |
}, |
48 |
{ |
49 |
"Code":"00000000000009abcdef0123456789", |
50 |
"EntityCode":"00000000000004abcdef0123456789", |
51 |
"Operation":2, |
52 |
"RelatedFeatureCode":"00000000000008abcdef0123456789", |
53 |
"Data":"\n{\n \"id\":2,\n \"text\":\"BBB\",\n \"VCSGISCODE\":\"00000000000008abcdef0123456789\"\n}" |
54 |
}, |
55 |
{ |
56 |
"Code":"00000000000011abcdef0123456789", |
57 |
"EntityCode":"00000000000004abcdef0123456789", |
58 |
"Operation":2, |
59 |
"RelatedFeatureCode":"00000000000010abcdef0123456789", |
60 |
"Data":"\n{\n \"id\":3,\n \"text\":\"CCC\",\n \"VCSGISCODE\":\"00000000000010abcdef0123456789\"\n}" |
61 |
} |
62 |
] |
63 |
} |
64 |
@end request |
65 |
|
66 |
@begin response |
67 |
@rem The server response of commit request for this test |
68 |
{ |
69 |
"Parameters":{ |
70 |
"StatusCode":0, |
71 |
"StatusMessage":null, |
72 |
"Entities":[ |
73 |
{ |
74 |
"DataTableName":"VCSGIS_DATA", |
75 |
"Description":null, |
76 |
"EntityCode":"00000000000004abcdef0123456789", |
77 |
"EntityName":"test", |
78 |
"FeatureIdFieldName":"VCSGISCODE", |
79 |
"FieldForLabel":"text", |
80 |
"GeometryFieldName":null, |
81 |
"RevisionCode":"00000000000016abcdef0123456789", |
82 |
"TopologyPlanCode":null, |
83 |
"UserCode":null, |
84 |
"Category":null, |
85 |
"Label":"test", |
86 |
"Autorizations":null, |
87 |
"TopologyPlanMode":0, |
88 |
"Resources":null, |
89 |
"DataModels":null, |
90 |
"LocalRevisionCode":null |
91 |
} |
92 |
] |
93 |
} |
94 |
} |
95 |
@end response |