source: DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/TestBackendConstants.java @ 4146

Last change on this file since 4146 was 4146, checked in by olhsha, 10 years ago

saving the current "last update" time stamp in UTC time in the DB. Outputting it as UTC. Works with PostgreSQL, does not work with HSQL (had to comment unit tests)

File size: 6.0 KB
Line 
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
23package eu.dasish.annotation.backend;
24
25public 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 String _TEST_BODY_MIMETYPE_HTML = "text/html"; 
55    public static final String _TEST_BODY_MIMETYPE_TEXT = "text/plain"; 
56   
57    public static final int _TEST_ANNOT_2_OWNER = 3;
58    public static final int _TEST_ANNOT_3_OWNER = 4;
59    public static final int _TEST_ANNOT_4_OWNER = 5;
60   
61    public static final String _TEST_ANNOT_2_BODY = "<html><body>some html 1</body></html>";
62    public static final String _TEST_ANNOT_TO_ADD_BODY = "<html><body>the stuff to be added</body></html>";
63   
64    public static final String _TEST_ANNOT_2_TIME_STAMP = "2013-08-12T09:25:00.383Z";
65   
66    public static final String annotaiontoDeleteInDB="INSERT INTO annotation (annotation_id, owner_id,headline,body_text, body_mimetype, external_id) VALUES (25, 111, 'Annotation to delete','<html><body>some html 4</body></html>', 'text/html', 00000000-0000-0000-0000-000000000025');";
67   
68    public static final String _TEST_USER_3_EXT_ID = "00000000-0000-0000-0000-000000000111";
69    public static final String _TEST_USER_4_EXT_ID = "00000000-0000-0000-0000-000000000112"; 
70    public static final String _TEST_USER_5_EXT_ID = "00000000-0000-0000-0000-000000000113"; 
71   
72    public static final String _TEST_USER_XXX_EXT_ID = "00000000-0000-0000-0000-000000000666"; 
73   
74   
75    public static final String _TEST_Target_1_EXT_ID = "00000000-0000-0000-0000-000000000031";
76    public static final String _TEST_Target_2_EXT_ID = "00000000-0000-0000-0000-000000000032";
77   
78    public static final String _TEST_Target_1_LINK = "http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia";
79    public static final String _TEST_Target_2_LINK = "http://nl.wikipedia.org/wiki/Antoni_Gaud%C3%AD";
80   
81    public static final String _TEST_Target_1_VERSION = "version 1.0";
82    public static final String _TEST_Target_2_VERSION = "version 1.0";
83   
84    public static final String _TEST_CACHED_REPRESENTATION_1_EXT_ID_ = "00000000-0000-0000-0000-000000000051";
85    public static final String _TEST_CACHED_REPRESENTATION_1_MIME_TYPE_ =  "text/html";
86    public static final String _TEST_CACHED_REPRESENTATION_1_TOOL_ =  "latex";
87    public static final String _TEST_CACHED_REPRESENTATION_1_TYPE_ =  "text";
88    public static final int _TEST_CACHED_REPRESENTATION_1_BLOB_BYTE_1 =  16;
89    public static final int _TEST_CACHED_REPRESENTATION_1_BLOB_BYTE_2 =  1;
90   
91   
92    public static final String _TEST_TEMP_Target_ID = "Barcelona-1";
93    public static final String _TEST_ANNOT_TO_ADD_NEW_Target_BODY = "refers to "+_TEST_TEMP_Target_ID;
94    public static final String _TEST_ANNOT_TO_ADD_NEW_Target_HEADLINE = "SF in Catalan";
95    public static final String _TEST_NEW_Target_LINK = "http://www.sagradafamilia.cat/docs_instit/historia.php ";
96   
97    public static final String _TEST_SERVLET_URI_annotations = "http://localhost:8080/annotator-backend/api/annotations/";
98    public static final String _TEST_SERVLET_URI_Targets = "http://localhost:8080/annotator-backend/api/Targets/";
99    public static final String _TEST_SERVLET_URI_cached = "http://localhost:8080/annotator-backend/api/cached/";
100    public static final String _TEST_SERVLET_URI_users = "http://localhost:8080/annotator-backend/api/users/";
101    public static final String _TEST_SERVLET_URI_notebooks = "http://localhost:8080/annotator-backend/api/notebooks/";
102}
103
Note: See TracBrowser for help on using the repository browser.