Ignore:
Timestamp:
08/22/13 16:28:29 (11 years ago)
Author:
olhsha
Message:

replacing setURI(externa_id) with setURI(serviceURI_externalId). The implementation idea has been tested on getAnnotation method. Works. Now it must be implemented for get-method of the other resources for the other resources.

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

    r3455 r3461  
    190190
    191191        final Number testAnnotationID = 2;
     192        jdbcAnnotationDao.setServiceURI(TestBackendConstants._TEST_SERVLET_URI);
    192193        final Annotation annotation = jdbcAnnotationDao.getAnnotationWithoutSources(testAnnotationID);
    193194        assertEquals(TestBackendConstants._TEST_ANNOT_2_HEADLINE, annotation.getHeadline());
    194195        assertEquals(String.valueOf(TestBackendConstants._TEST_ANNOT_2_OWNER), annotation.getOwner().getRef());
    195196        assertEquals(TestBackendConstants._TEST_ANNOT_2_BODY, annotation.getBody().getAny().get(0)); // when the body is elaborated it may be changed
    196         assertEquals(TestBackendConstants._TEST_ANNOT_2_EXT, annotation.getURI());
     197        assertEquals(TestBackendConstants._TEST_SERVLET_URI+TestBackendConstants._TEST_ANNOT_2_EXT, annotation.getURI());
    197198        assertEquals(TestBackendConstants._TEST_ANNOT_2_TIME_STAMP, annotation.getTimeStamp().toString());
    198199    }
Note: See TracChangeset for help on using the changeset viewer.