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

"put updated body" is implemented and tested. Big refactring: simplifying DAO's and pushing their composition to rest methods. add-methods in DAO return now not the classes but internalID-s of the added resources. Still 2 test errors and 2 test failures.

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/JdbcVersionDaoTest.java

    r3372 r3380  
    4040@ContextConfiguration({"/spring-test-config/dataSource.xml", "/spring-test-config/mockery.xml", "/spring-test-config/mockAnnotationDao.xml",
    4141    "/spring-test-config/mockUserDao.xml", "/spring-test-config/mockPermissionsDao.xml", "/spring-test-config/mockNotebookDao.xml",
    42     "/spring-test-config/mockCachedRepresentationDao.xml", "/spring-config/versionDao.xml"})
     42    "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockCachedRepresentationDao.xml", "/spring-config/versionDao.xml"})
    4343
    4444public class JdbcVersionDaoTest extends JdbcResourceDaoTest{
     
    169169        Version freshVersion = new Version();   
    170170       
    171         Version result = jdbcVersionDao.addVersion(freshVersion);
    172         assertFalse(null==result.getVersion());
    173        
    174         // check if it is a good UUID. the program breaks if the string is anot a good UUID
    175         assertEquals(result.getVersion(), (new VersionIdentifier(result.getVersion())).toString());
     171        Number result = jdbcVersionDao.addVersion(freshVersion);
     172        assertEquals(8, result);
     173        Version addedVersion = jdbcVersionDao.getVersion(result);
     174        assertFalse(null==addedVersion.getVersion());
     175       
    176176    }
    177177
Note: See TracChangeset for help on using the changeset viewer.