Ignore:
Timestamp:
08/21/13 09:47:33 (11 years ago)
Author:
olhsha
Message:

making interface and bean for DaoDispatcher?. AnnotationResourceTest? passed with 3 methods: get, add and delete annotations. AnnotationsTest? still have problems.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/dao/impl/DaoDispatcherTest.java

    r3448 r3452  
    1616 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    1717 */
    18 package eu.dasish.annotation.backend.rest;
     18package eu.dasish.annotation.backend.dao.impl;
    1919
    2020import eu.dasish.annotation.backend.Helpers;
     
    4545import java.sql.Timestamp;
    4646import java.util.ArrayList;
    47 import java.util.HashMap;
    4847import java.util.List;
    4948import java.util.Map;
     
    6564@ContextConfiguration({"/spring-test-config/dataSource.xml", "/spring-test-config/mockery.xml", "/spring-test-config/mockAnnotationDao.xml",
    6665    "/spring-test-config/mockUserDao.xml", "/spring-test-config/mockNotebookDao.xml",
    67     "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockVersionDao.xml", "/spring-test-config/mockCachedRepresentationDao.xml"})
     66    "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockVersionDao.xml", "/spring-test-config/mockCachedRepresentationDao.xml",
     67    "/spring-config/daoDispatcher.xml"})
    6868public class DaoDispatcherTest {
    6969
    7070    @Autowired
    71     private DaoDispatcher daoDispatcher;
     71    private DaoDispatcherImpl daoDispatcher;
    7272    @Autowired
    7373    private Mockery mockery;
     
    9191    ///////// GETTERS /////////////
    9292    /**
    93      * Test of getAnnotationInternalIdentifier method, of class DaoDispatcher.
     93     * Test of getAnnotationInternalIdentifier method, of class DaoDispatcherImpl.
    9494     */
    9595    @Test
     
    108108
    109109    /**
    110      * Test of getAnnotationExternalIdentifier method, of class DaoDispatcher.
     110     * Test of getAnnotationExternalIdentifier method, of class DaoDispatcherImpl.
    111111     */
    112112    @Test
     
    125125
    126126    /**
    127      * Test of getUserInternalIdentifier method, of class DaoDispatcher.
     127     * Test of getUserInternalIdentifier method, of class DaoDispatcherImpl.
    128128     */
    129129    @Test
     
    143143
    144144    /**
    145      * Test of getUserExternalIdentifier method, of class DaoDispatcher.
     145     * Test of getUserExternalIdentifier method, of class DaoDispatcherImpl.
    146146     */
    147147    @Test
     
    160160
    161161    /**
    162      * Test of getAnnotation method, of class DaoDispatcher.
     162     * Test of getAnnotation method, of class DaoDispatcherImpl.
    163163     */
    164164    @Test
     
    229229
    230230    /**
    231      * Test of getFilteredAnnotationIDs method, of class DaoDispatcher.
     231     * Test of getFilteredAnnotationIDs method, of class DaoDispatcherImpl.
    232232     */
    233233    @Test
     
    280280    ////////////// ADDERS /////////////////////////
    281281    /**
    282      * Test of addCachedForVersion method, of class DaoDispatcher.
     282     * Test of addCachedForVersion method, of class DaoDispatcherImpl.
    283283     */
    284284    @Test
     
    316316
    317317    /**
    318      * Test of addSiblingVersionForSource method, of class DaoDispatcher.
     318     * Test of addSiblingVersionForSource method, of class DaoDispatcherImpl.
    319319     */
    320320    @Test
     
    369369
    370370    /**
    371      * Test of addSourcesForAnnotation method, of class DaoDispatcher.
     371     * Test of addSourcesForAnnotation method, of class DaoDispatcherImpl.
    372372     */
    373373    @Test
     
    443443
    444444    /**
    445      * Test of addUsersAnnotation method, of class DaoDispatcher.
     445     * Test of addUsersAnnotation method, of class DaoDispatcherImpl.
    446446     */
    447447    @Test
     
    480480    //////////////////// DELETERS ////////////////
    481481    /**
    482      * Test of deleteCachedForVersion method, of class DaoDispatcher.
     482     * Test of deleteCachedForVersion method, of class DaoDispatcherImpl.
    483483     */
    484484    @Test
     
    604604
    605605    /**
    606      * Test of deleteAnnotationWithSources method, of class DaoDispatcher.
     606     * Test of deleteAnnotationWithSources method, of class DaoDispatcherImpl.
    607607     */
    608608    @Test
Note: See TracChangeset for help on using the changeset viewer.