Ignore:
Timestamp:
12/19/13 14:36:04 (10 years ago)
Author:
olhsha
Message:

adding trasnactional, refactoring and fixing bugs in updated annotations, removing try-catch from resource methods (The Greek's advice)

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  
    376376   
    377377    //////////////////////////////////
    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   
    391379 
    392380   
Note: See TracChangeset for help on using the changeset viewer.