- Timestamp:
- 04/02/14 21:15:22 (10 years ago)
- Location:
- DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/impl/JdbcAnnotationDao.java
r4885 r4886 393 393 394 394 String[] body = retrieveBodyComponents(annotation.getBody()); 395 //debug 396 System.out.println(annotation.getURI()); 395 397 396 String externalID = this.stringURItoExternalID(annotation.getURI()); 398 397 Map<String, Object> params = new HashMap<String, Object>(); -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/impl/JdbcResourceDao.java
r4885 r4886 276 276 // debug 277 277 System.out.println("test Input stringURItoExternalID : "+stringURI); 278 System.out.println("test serviceUri : "+_serviceURI); 278 279 if (stringURI.length() > _serviceURI.length()) { 279 280 return stringURI.substring(_serviceURI.length()); -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/dao/impl/JdbcAnnotationDaoTest.java
r4885 r4886 495 495 496 496 @Test 497 @Ignore498 497 public void testUpdateAnnotation() { 499 System.out.println("KOUKOUK!!!!"); 500 498 System.out.println("test UpdateAnnotation"); 499 jdbcAnnotationDao.setServiceURI(TestBackendConstants._TEST_SERVLET_URI_annotations); 500 501 501 Annotation annotation = testInstances.getAnnotationOne(); 502 502 annotation.setHeadline("updated headline 1"); … … 507 507 int result = jdbcAnnotationDao.updateAnnotation(annotation,1, 1); 508 508 assertEquals(1, result); 509 // Annotation check = jdbcAnnotationDao.getAnnotationWithoutTargetsAndPemissions(1); 510 // assertEquals("updated some html 1", check.getBody().getTextBody().getBody()); 511 // assertEquals("text/plain", check.getBody().getTextBody().getMimeType()); 512 // assertEquals("updated headline 1", check.getHeadline()); 509 System.out.println(" annotation updated"); 510 Annotation check = jdbcAnnotationDao.getAnnotationWithoutTargetsAndPemissions(1); 511 assertEquals("updated some html 1", check.getBody().getTextBody().getBody()); 512 assertEquals("text/plain", check.getBody().getTextBody().getMimeType()); 513 assertEquals("updated headline 1", check.getHeadline()); 513 514 514 515 }
Note: See TracChangeset
for help on using the changeset viewer.