Changeset 4207 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/dao/impl/JdbcAnnotationDaoTest.java
- Timestamp:
- 12/19/13 14:36:04 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/dao/impl/JdbcAnnotationDaoTest.java
r4173 r4207 376 376 377 377 ////////////////////////////////// 378 @Test 379 public void testUpdateBodyText() throws SQLException{ 380 System.out.println("test updateBodyText"); 381 String newBodyText = "new body"; 382 int result = jdbcAnnotationDao.updateAnnotationBodyText(2, newBodyText); 383 assertEquals(1, result); 384 Map<Annotation,Number> getResult= jdbcAnnotationDao.getAnnotationWithoutTargetsAndPermissions(2); 385 Annotation[] annotations = new Annotation[1]; 386 getResult.keySet().toArray(annotations); 387 assertEquals(newBodyText, annotations[0].getBody().getTextBody().getValue()); 388 System.out.println("update time "+annotations[0].getLastModified()); 389 } 390 378 391 379 392 380
Note: See TracChangeset
for help on using the changeset viewer.