1 | /** |
---|
2 | * Copyright (C) 2013 DASISH |
---|
3 | * |
---|
4 | * This program is free software; you can redistribute it and/or |
---|
5 | * modify it under the terms of the GNU General Public License |
---|
6 | * as published by the Free Software Foundation; either version 2 |
---|
7 | * of the License, or (at your option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, |
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | * GNU General Public License for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU General Public License |
---|
15 | * along with this program; if not, write to the Free Software |
---|
16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
17 | */ |
---|
18 | /* |
---|
19 | * To change this template, choose Tools | Templates |
---|
20 | * and open the template in the editor. |
---|
21 | */ |
---|
22 | |
---|
23 | package eu.dasish.annotation.backend; |
---|
24 | |
---|
25 | public class TestBackendConstants { |
---|
26 | |
---|
27 | public static final String _TEST_NOTEBOOK_1_EXT_ID ="00000000-0000-0000-0000-000000000001"; |
---|
28 | public static final String _TEST_NOTEBOOK_2_EXT_ID ="00000000-0000-0000-0000-000000000002"; |
---|
29 | public static final String _TEST_UID_1_ = "00000000-0000-0000-0000-000000000003"; |
---|
30 | public static final String _TEST_UID_2_ = "00000000-0000-0000-0000-000000000004"; |
---|
31 | public static final String _TEST_AID_1_ = "00000000-0000-0000-0000-000000000005"; |
---|
32 | public static final String _TEST_NULL_UUID_ = "00000000-0000-0000-0000-000000000006"; |
---|
33 | |
---|
34 | // testing jdbcAnnotationDao |
---|
35 | public static final String _TEST_NOTEBOOK_3_EXT = "00000000-0000-0000-0000-000000000011"; |
---|
36 | public static final String _TEST_NOTEBOOK_4_EXT = "00000000-0000-0000-0000-000000000012"; |
---|
37 | public static final String _TEST_NOTEBOOK_5_EXT = "00000000-0000-0000-0000-000000000013"; |
---|
38 | |
---|
39 | public static final String _TEST_NOTEBOOK_3_TITLE = "Notebook 3"; |
---|
40 | public static final String _TEST_NOTEBOOK_4_TITLE = "Notebook 4"; |
---|
41 | public static final String _TEST_NOTEBOOK_5_TITLE = "Notebook 5"; |
---|
42 | |
---|
43 | public static final String _TEST_ANNOT_2_EXT = "00000000-0000-0000-0000-000000000021"; |
---|
44 | public static final String _TEST_ANNOT_3_EXT = "00000000-0000-0000-0000-000000000022"; |
---|
45 | public static final String _TEST_ANNOT_4_EXT = "00000000-0000-0000-0000-000000000023"; |
---|
46 | public static final String _TEST_ANNOT_5_EXT = "00000000-0000-0000-0000-000000000024"; |
---|
47 | public static final String _TEST_ANNOT_7_EXT_NOT_IN_DB = "00000000-0000-0000-0000-000000000026"; |
---|
48 | |
---|
49 | public static final String _TEST_ANNOT_2_HEADLINE = "Sagrada Famiglia"; |
---|
50 | public static final String _TEST_ANNOT_3_HEADLINE = "Gaudi"; |
---|
51 | public static final String _TEST_ANNOT_4_HEADLINE = "Art Nuveau"; |
---|
52 | public static final String _TEST_ANNOT_TO_ADD_HEADLINE = "Annotation to add to test DAO"; |
---|
53 | |
---|
54 | public static final int _TEST_ANNOT_2_OWNER = 3; |
---|
55 | public static final int _TEST_ANNOT_3_OWNER = 4; |
---|
56 | public static final int _TEST_ANNOT_4_OWNER = 5; |
---|
57 | |
---|
58 | public static final String _TEST_ANNOT_2_BODY = "<html><body>some html 1</body></html>"; |
---|
59 | public static final String _TEST_ANNOT_TO_ADD_BODY = "<html><body>the stuff to be added</body></html>"; |
---|
60 | |
---|
61 | public static final String _TEST_ANNOT_2_TIME_STAMP = "2013-08-12T11:25:00.383+02:00"; |
---|
62 | |
---|
63 | public static final String annotaiontoDeleteInDB="INSERT INTO annotation (annotation_id, owner_id,headline,body_xml, external_id) VALUES (25, 111, 'Annotation to delete','<html><body>some html 4</body></html>', '00000000-0000-0000-0000-000000000025');"; |
---|
64 | |
---|
65 | public static final String _TEST_USER_3_EXT_ID = "00000000-0000-0000-0000-000000000111"; |
---|
66 | public static final String _TEST_USER_4_EXT_ID = "00000000-0000-0000-0000-000000000112"; |
---|
67 | public static final String _TEST_USER_5_EXT_ID = "00000000-0000-0000-0000-000000000113"; |
---|
68 | |
---|
69 | public static final String _TEST_USER_XXX_EXT_ID = "00000000-0000-0000-0000-000000000666"; |
---|
70 | |
---|
71 | //////////////////////////////////////////////////////////////////////////////////////////////////////////// |
---|
72 | |
---|
73 | // INSERT INTO target_source (external_id, link_uri, version_id) VALUES ('00000000-0000-0000-0000-000000000031', 'http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia', 1); -- 1 |
---|
74 | // INSERT INTO target_source (external_id, link_uri, version_id) VALUES ('00000000-0000-0000-0000-000000000032', 'http://nl.wikipedia.org/wiki/Antoni_Gaud%C3%AD', 3); --2 |
---|
75 | |
---|
76 | |
---|
77 | public static final String _TEST_SOURCE_1_EXT_ID = "00000000-0000-0000-0000-000000000031"; |
---|
78 | public static final String _TEST_SOURCE_2_EXT_ID = "00000000-0000-0000-0000-000000000032"; |
---|
79 | |
---|
80 | public static final String _TEST_SOURCE_1_LINK = "http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia"; |
---|
81 | public static final String _TEST_SOURCE_2_LINK = "http://nl.wikipedia.org/wiki/Antoni_Gaud%C3%AD"; |
---|
82 | |
---|
83 | //public static final int _TEST_SOURCE_1_VERSION_ID = 1; |
---|
84 | //public static final int _TEST_SOURCE_2_VERSION_ID = 3; |
---|
85 | |
---|
86 | public static final String _TEST_CACHED_REPRESENTATION_1_EXT_ID_ = "00000000-0000-0000-0000-000000000051"; |
---|
87 | // INSERT INTO cached_representation_info (external_id, mime_type, tool, type_, where_is_the_file) VALUES ('00000000-0000-0000-0000-000000000051', 'text/html', 'latex', 'text', 'corpus1'); --1 |
---|
88 | public static final String _TEST_CACHED_REPRESENTATION_1_MIME_TYPE_ = "text/html"; |
---|
89 | public static final String _TEST_CACHED_REPRESENTATION_1_TOOL_ = "latex"; |
---|
90 | public static final String _TEST_CACHED_REPRESENTATION_1_TYPE_ = "text"; |
---|
91 | |
---|
92 | public static final String _TEST_VERSION_1_EXT_ID = "00000000-0000-0000-0000-000000000041"; |
---|
93 | public static final String _TEST_VERSION_2_EXT_ID = "00000000-0000-0000-0000-000000000042"; |
---|
94 | public static final String _TEST_VERSION_3_EXT_ID = "00000000-0000-0000-0000-000000000043"; |
---|
95 | public static final String _TEST_VERSION_NONEXIST_EXT_ID = "00000000-0000-0000-0000-000000000049"; |
---|
96 | |
---|
97 | public static final String _TEST_TEMP_SOURCE_ID = "Barcelona-1"; |
---|
98 | public static final String _TEST_ANNOT_TO_ADD_NEW_SOURCE_BODY = "refers to "+_TEST_TEMP_SOURCE_ID; |
---|
99 | public static final String _TEST_ANNOT_TO_ADD_NEW_SOURCE_HEADLINE = "SF in Catalan"; |
---|
100 | public static final String _TEST_NEW_SOURCE_LINK = "http://www.sagradafamilia.cat/docs_instit/historia.php "; |
---|
101 | |
---|
102 | public static final String _TEST_SERVLET_URI = "/dasish/"; |
---|
103 | } |
---|
104 | |
---|