Ignore:
Timestamp:
12/10/13 15:18:42 (10 years ago)
Author:
olhsha
Message:

lintegrity unit test reconstructed so it does not mock any more. getAnnotation works (the others are "ignored"). Needs refactoring (the subdirectory with beans and DummySecurityFilter? class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/rest/AnnotationResourceTest.java

    r4146 r4173  
    1919
    2020import eu.dasish.annotation.backend.dao.DBIntegrityService;
    21 import eu.dasish.annotation.backend.Helpers;
    2221import eu.dasish.annotation.backend.MockObjectsFactoryRest;
    2322import eu.dasish.annotation.backend.TestBackendConstants;
     
    4544import java.lang.InstantiationException;
    4645import java.net.URI;
    47 import java.sql.Timestamp;
    4846import java.util.ArrayList;
    4947import java.util.List;
     
    7472    private DBIntegrityService mockDbIntegrityService;
    7573    @Autowired
     74    UriInfo mockUriInfo;   
     75    @Autowired
    7676    private AnnotationResource annotationResource;
    77     @Autowired
    78     UriInfo mockUriInfo;
    7977   
    8078    private MockHttpServletRequest mockRequest;
     
    9492        System.out.println("getAnnotation");
    9593        final String externalIDstring= TestBackendConstants._TEST_ANNOT_2_EXT;
    96         final Annotation expectedAnnotation = (new TestInstances()).getAnnotationOne();       
     94        final Annotation expectedAnnotation = (new TestInstances(TestBackendConstants._TEST_SERVLET_URI)).getAnnotationOne();       
    9795        annotationResource.setHttpServletRequest(mockRequest);       
    9896        annotationResource.setUriInfo(mockUriInfo);       
Note: See TracChangeset for help on using the changeset viewer.