Changeset 3477
- Timestamp:
- 08/26/13 15:41:57 (11 years ago)
- Location:
- DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend
- Files:
-
- 9 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/pom.xml
r3111 r3477 123 123 </execution> 124 124 </executions> 125 </plugin> 125 </plugin> 126 <plugin> 127 <groupId>org.apache.maven.plugins</groupId> 128 <artifactId>maven-javadoc-plugin</artifactId> 129 <version>2.9.1</version> 130 </plugin> 126 131 </plugins> 127 132 </build> -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/BackendConstants.java
r3365 r3477 24 24 public class BackendConstants { 25 25 26 // Hash Parameters27 public static final int NOTEBOOK_HASH_PARAM_1 = 7;28 public static final int NOTEBOOK_HASH_PARAM_2 = 29;29 public static final int ANNOTATION_HASH_PARAM_1 = 5;30 public static final int ANNOTATION_HASH_PARAM_2 = 23;31 public static final int USER_HASH_PARAM_1 = 5;32 public static final int USER_HASH_PARAM_2 = 19;33 // peter, is it okay?34 public static final int SOURCE_HASH_PARAM_1 = 7;35 public static final int SOURCE_HASH_PARAM_2 = 23;36 public static final int CACHED_REPRESENTATION_HASH_PARAM_1 = 7;37 public static final int CACHED_REPRESENTATION_HASH_PARAM_2 = 19;38 public static final int VERSION_HASH_PARAM_1 = 5;39 public static final int VERSION_HASH_PARAM_2 = 29;40 41 26 public static final String regExpIdentifier = "[a-zA-Z0-9_-]*"; 42 27 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/AnnotationDao.java
r3476 r3477 46 46 * @return the Annotation object with empty list of sources. 47 47 * 48 * (Constructing a complete Annotation object using "getAnnotationWithoutSources" and "retrieveSourceIDs" is done in "DaoDispatchter" 48 * (Constructing a complete Annotation object using "getAnnotationWithoutSources" and "retrieveSourceIDs" is done in "DaoDispatchter".) 49 49 * 50 50 */ -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/DBIntegrityService.java
r3476 r3477 31 31 * 32 32 * @author olhsha 33 **/ 34 35 /** 33 36 * 34 37 * Resource and the corresponding Dao's are, so to say, "lavelled". Notebook has level 5, Annotation has level 4, Source has level 3, Version has level 2 and CachedRepresentation has level 1. Users are not subject to this hierarchy. … … 43 46 * Second, delete<X> is called from the corresponding Dao. 44 47 * Third, delete<X-1> are recursively called for all the related sub-resources of the level X-1. E.g., after deleting an annotation itself all the sources (which are not used by other annotations) must be deleted as well. 48 49 * 50 * Comments on Dao-classes. 51 * 52 * Each Dao-class contains "isInUse(internalID") method. It return "true" if the resource with ID occurs at least in one of the joint tables. Used in "delete(internalID)" methods. 53 * 54 * If the resource with "internalID" is asked to be deleted, the deletion methods will first call "isInUse(internalID)". If it returns 'true" nothing will happen. Otherwise deletion is happen. 55 * 56 * Each "add(object)" method returns the added-object's new internalID or null if the DB has not been updated for some reason. 57 * 45 58 **/ 46 59 47 /** 48 * 49 * Comments on Dao-classes. 50 * 51 * -- Each Dao-class contains "isInUse(internalID") method. It return "true" if the resource with ID occurs at least in one of the joint tables. Used in "delete(internalID)" methods. 52 * 53 * -- If the resource with "internalID" is asked to be deleted, the deletion methods will first call "isInUse(internalID)". If it returns 'true" nothing will happen. Otherwise deletion is happen. 54 * 55 * -- every "add(object)" method return the added object new internalID or null if the DB has not been updated for some reason. 56 * 57 **/ 58 59 60 public interface DaoDispatcher{ 60 61 public interface DBIntegrityService{ 61 62 62 63 public void setServiceURI(String serviceURI); … … 201 202 * 202 203 * @param sourceID 203 * @return result[0] = # deleted rows in the table "source" ( 204 * @return result[0] = # deleted rows in the table "source" (0 is the source is in use). 204 205 * result[1] = # deleted rows in the table "sources_versions". 205 * result[2] = # deleted rows in the table source.206 * result[2] = # deleted rows in the table "version". 206 207 * @throws SQLException 207 208 */ -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/impl/DBIntegrityServiceImlp.java
r3476 r3477 21 21 import eu.dasish.annotation.backend.dao.AnnotationDao; 22 22 import eu.dasish.annotation.backend.dao.CachedRepresentationDao; 23 import eu.dasish.annotation.backend.dao.D aoDispatcher;23 import eu.dasish.annotation.backend.dao.DBIntegrityService; 24 24 import eu.dasish.annotation.backend.dao.NotebookDao; 25 25 import eu.dasish.annotation.backend.dao.SourceDao; … … 47 47 * @author olhsha 48 48 */ 49 public class D aoDispatcherImpl implements DaoDispatcher49 public class DBIntegrityServiceImlp implements DBIntegrityService 50 50 { 51 51 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/AnnotationResource.java
r3461 r3477 19 19 20 20 import eu.dasish.annotation.backend.BackendConstants; 21 import eu.dasish.annotation.backend.dao.D aoDispatcher;21 import eu.dasish.annotation.backend.dao.DBIntegrityService; 22 22 import eu.dasish.annotation.schema.Annotation; 23 23 import eu.dasish.annotation.schema.ObjectFactory; … … 47 47 48 48 @Autowired 49 private D aoDispatcher daoDispatcher;49 private DBIntegrityService dbIntegrityService; 50 50 @Context 51 51 private HttpServletRequest httpServletRequest; … … 62 62 @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}") 63 63 public JAXBElement<Annotation> getAnnotation(@PathParam("annotationid") String ExternalIdentifier) throws SQLException { 64 final Number annotationID = d aoDispatcher.getAnnotationInternalIdentifier(UUID.fromString(ExternalIdentifier));65 d aoDispatcher.setServiceURI(httpServletRequest.getServletPath());66 final Annotation annotation = d aoDispatcher.getAnnotation(annotationID);64 final Number annotationID = dbIntegrityService.getAnnotationInternalIdentifier(UUID.fromString(ExternalIdentifier)); 65 dbIntegrityService.setServiceURI(httpServletRequest.getServletPath()); 66 final Annotation annotation = dbIntegrityService.getAnnotation(annotationID); 67 67 return new ObjectFactory().createAnnotation(annotation); 68 68 } … … 73 73 @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}") 74 74 public String deleteAnnotation(@PathParam("annotationid") String externalIdentifier) throws SQLException { 75 final Number annotationID = d aoDispatcher.getAnnotationInternalIdentifier(UUID.fromString(externalIdentifier));76 int[] resultDelete = d aoDispatcher.deleteAnnotation(annotationID);75 final Number annotationID = dbIntegrityService.getAnnotationInternalIdentifier(UUID.fromString(externalIdentifier)); 76 int[] resultDelete = dbIntegrityService.deleteAnnotation(annotationID); 77 77 String result = Integer.toString(resultDelete[0]); 78 78 return result; … … 89 89 String remoteUser = httpServletRequest.getRemoteUser(); 90 90 UUID userExternalID = (remoteUser != null) ? UUID.fromString(remoteUser) : null; 91 Number userID = d aoDispatcher.getUserInternalIdentifier(userExternalID);91 Number userID = dbIntegrityService.getUserInternalIdentifier(userExternalID); 92 92 93 d aoDispatcher.setServiceURI(httpServletRequest.getServletPath());93 dbIntegrityService.setServiceURI(httpServletRequest.getServletPath()); 94 94 95 Number newAnnotationID = d aoDispatcher.addUsersAnnotation(annotation, userID);96 Annotation newAnnotation = d aoDispatcher.getAnnotation(newAnnotationID);95 Number newAnnotationID = dbIntegrityService.addUsersAnnotation(annotation, userID); 96 Annotation newAnnotation = dbIntegrityService.getAnnotation(newAnnotationID); 97 97 return (new ObjectFactory().createAnnotation(newAnnotation)); 98 98 } -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/resources/spring-config/dbIntegrityService.xml
r3452 r3477 24 24 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 25 25 "> 26 <bean class="eu.dasish.annotation.backend.dao.impl.D aoDispatcherImpl">26 <bean class="eu.dasish.annotation.backend.dao.impl.DBIntegrityServiceImlp"> 27 27 <!-- <constructor-arg ref="dataSource"/> --> 28 28 </bean> -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/MockObjectsFactory.java
r3452 r3477 24 24 import eu.dasish.annotation.backend.dao.UserDao; 25 25 import eu.dasish.annotation.backend.dao.VersionDao; 26 import eu.dasish.annotation.backend.dao.D aoDispatcher;26 import eu.dasish.annotation.backend.dao.DBIntegrityService; 27 27 import org.jmock.Mockery; 28 28 … … 65 65 } 66 66 67 public D aoDispatcher newDaoDispatcher() {68 return context.mock(D aoDispatcher.class);67 public DBIntegrityService newDBIntegrityService() { 68 return context.mock(DBIntegrityService.class); 69 69 } 70 70 } -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/dao/impl/DBIntegrityServiceTest.java
r3455 r3477 61 61 "/spring-test-config/mockUserDao.xml", "/spring-test-config/mockNotebookDao.xml", 62 62 "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockVersionDao.xml", "/spring-test-config/mockCachedRepresentationDao.xml", 63 "/spring-config/d aoDispatcher.xml"})64 public class D aoDispatcherTest {65 66 @Autowired 67 private D aoDispatcherImpl daoDispatcher;63 "/spring-config/dbIntegrityService.xml"}) 64 public class DBIntegrityServiceTest { 65 66 @Autowired 67 private DBIntegrityServiceImlp dbIntegrityService; 68 68 @Autowired 69 69 private Mockery mockery; … … 82 82 TestInstances testInstances = new TestInstances(); 83 83 84 public D aoDispatcherTest() {84 public DBIntegrityServiceTest() { 85 85 } 86 86 87 87 ///////// GETTERS ///////////// 88 88 /** 89 * Test of getAnnotationInternalIdentifier method, of class D aoDispatcherImpl.89 * Test of getAnnotationInternalIdentifier method, of class DBIntegrityServiceImlp. 90 90 */ 91 91 @Test … … 100 100 } 101 101 }); 102 assertEquals(2, d aoDispatcher.getAnnotationInternalIdentifier(externalID));103 } 104 105 /** 106 * Test of getAnnotationExternalIdentifier method, of class D aoDispatcherImpl.102 assertEquals(2, dbIntegrityService.getAnnotationInternalIdentifier(externalID)); 103 } 104 105 /** 106 * Test of getAnnotationExternalIdentifier method, of class DBIntegrityServiceImlp. 107 107 */ 108 108 @Test … … 117 117 } 118 118 }); 119 assertEquals(TestBackendConstants._TEST_ANNOT_2_EXT, d aoDispatcher.getAnnotationExternalIdentifier(2).toString());120 } 121 122 /** 123 * Test of getUserInternalIdentifier method, of class D aoDispatcherImpl.119 assertEquals(TestBackendConstants._TEST_ANNOT_2_EXT, dbIntegrityService.getAnnotationExternalIdentifier(2).toString()); 120 } 121 122 /** 123 * Test of getUserInternalIdentifier method, of class DBIntegrityServiceImlp. 124 124 */ 125 125 @Test … … 135 135 } 136 136 }); 137 assertEquals(5, d aoDispatcher.getUserInternalIdentifier(externalID));138 } 139 140 /** 141 * Test of getUserExternalIdentifier method, of class D aoDispatcherImpl.137 assertEquals(5, dbIntegrityService.getUserInternalIdentifier(externalID)); 138 } 139 140 /** 141 * Test of getUserExternalIdentifier method, of class DBIntegrityServiceImlp. 142 142 */ 143 143 @Test … … 152 152 } 153 153 }); 154 assertEquals(TestBackendConstants._TEST_USER_5_EXT_ID, d aoDispatcher.getUserExternalIdentifier(5).toString());155 } 156 157 /** 158 * Test of getAnnotation method, of class D aoDispatcherImpl.154 assertEquals(TestBackendConstants._TEST_USER_5_EXT_ID, dbIntegrityService.getUserExternalIdentifier(5).toString()); 155 } 156 157 /** 158 * Test of getAnnotation method, of class DBIntegrityServiceImlp. 159 159 */ 160 160 @Test … … 210 210 }); 211 211 212 Annotation result = d aoDispatcher.getAnnotation(1);212 Annotation result = dbIntegrityService.getAnnotation(1); 213 213 assertEquals(TestBackendConstants._TEST_ANNOT_2_EXT, result.getURI()); 214 214 assertEquals(TestBackendConstants._TEST_ANNOT_2_BODY, result.getBody().getAny().get(0)); … … 225 225 226 226 /** 227 * Test of getFilteredAnnotationIDs method, of class D aoDispatcherImpl.227 * Test of getFilteredAnnotationIDs method, of class DBIntegrityServiceImlp. 228 228 */ 229 229 @Test … … 269 269 270 270 271 List result = d aoDispatcher.getFilteredAnnotationIDs(link, text, access, namespace, owner, after, before);271 List result = dbIntegrityService.getFilteredAnnotationIDs(link, text, access, namespace, owner, after, before); 272 272 assertEquals(1, result.size()); 273 273 assertEquals(2, result.get(0)); … … 276 276 ////////////// ADDERS ///////////////////////// 277 277 /** 278 * Test of addCachedForVersion method, of class D aoDispatcherImpl.278 * Test of addCachedForVersion method, of class DBIntegrityServiceImlp. 279 279 */ 280 280 @Test … … 305 305 306 306 307 Number[] result = d aoDispatcher.addCachedForVersion(versionID, newCached);307 Number[] result = dbIntegrityService.addCachedForVersion(versionID, newCached); 308 308 assertEquals(2, result.length); 309 309 assertEquals(1, result[0]); … … 312 312 313 313 /** 314 * Test of addSiblingVersionForSource method, of class D aoDispatcherImpl.314 * Test of addSiblingVersionForSource method, of class DBIntegrityServiceImlp. 315 315 */ 316 316 @Test … … 337 337 }); 338 338 339 Number[] result = d aoDispatcher.addSiblingVersionForSource(1, mockVersion);339 Number[] result = dbIntegrityService.addSiblingVersionForSource(1, mockVersion); 340 340 assertEquals(2, result.length); 341 341 assertEquals(1, result[0]); … … 358 358 } 359 359 }); 360 Number[] resultTwo = d aoDispatcher.addSiblingVersionForSource(1, mockVersionTwo);360 Number[] resultTwo = dbIntegrityService.addSiblingVersionForSource(1, mockVersionTwo); 361 361 assertEquals(2, resultTwo.length); 362 362 assertEquals(1, resultTwo[0]); … … 365 365 366 366 /** 367 * Test of addSourcesForAnnotation method, of class D aoDispatcherImpl.367 * Test of addSourcesForAnnotation method, of class DBIntegrityServiceImlp. 368 368 */ 369 369 @Test … … 392 392 }); 393 393 394 Map<String, String> result = d aoDispatcher.addSourcesForAnnotation(1, mockSourceSOne);394 Map<String, String> result = dbIntegrityService.addSourcesForAnnotation(1, mockSourceSOne); 395 395 assertEquals(0, result.size()); 396 396 … … 405 405 mockSourceSTwo.add(testSourceTwo); 406 406 407 // final Source mockNewSource = d aoDispatcher.createSource(testNewSource);408 // final Version mockNewVersion = d aoDispatcher.createVersion(testNewSource);407 // final Source mockNewSource = dbIntegrityService.createSource(testNewSource); 408 // final Version mockNewVersion = dbIntegrityService.createVersion(testNewSource); 409 409 410 410 mockery.checking(new Expectations() { … … 432 432 }); 433 433 434 Map<String, String> resultTwo = d aoDispatcher.addSourcesForAnnotation(1, mockSourceSTwo);434 Map<String, String> resultTwo = dbIntegrityService.addSourcesForAnnotation(1, mockSourceSTwo); 435 435 assertEquals(1, resultTwo.size()); 436 436 assertFalse(null == resultTwo.get(testNewSource.getId())); … … 439 439 440 440 /** 441 * Test of addUsersAnnotation method, of class D aoDispatcherImpl.441 * Test of addUsersAnnotation method, of class DBIntegrityServiceImlp. 442 442 */ 443 443 @Test … … 470 470 }); 471 471 472 Number result = d aoDispatcher.addUsersAnnotation(testAnnotation, 5);472 Number result = dbIntegrityService.addUsersAnnotation(testAnnotation, 5); 473 473 assertEquals(6, result); 474 474 } … … 476 476 //////////////////// DELETERS //////////////// 477 477 /** 478 * Test of deleteCachedForVersion method, of class D aoDispatcherImpl.478 * Test of deleteCachedForVersion method, of class DBIntegrityServiceImlp. 479 479 */ 480 480 @Test … … 492 492 }); 493 493 494 int[] result = d aoDispatcher.deleteCachedOfVersion(6, 5);494 int[] result = dbIntegrityService.deleteCachedOfVersion(6, 5); 495 495 assertEquals(2, result.length); 496 496 assertEquals(1, result[0]); … … 524 524 }); 525 525 526 int[] result = d aoDispatcher.deleteAllCachedOfVersion(6);526 int[] result = dbIntegrityService.deleteAllCachedOfVersion(6); 527 527 assertEquals(1, result[0]); //version 528 528 assertEquals(1, result[1]); // versions-cached … … 540 540 541 541 542 int[] resultTwo = d aoDispatcher.deleteAllCachedOfVersion(5); // version is in use by the source 4542 int[] resultTwo = dbIntegrityService.deleteAllCachedOfVersion(5); // version is in use by the source 4 543 543 assertEquals(0, resultTwo[0]); 544 544 assertEquals(0, resultTwo[1]); … … 557 557 }); 558 558 559 int[] result = d aoDispatcher.deleteAllVersionsOfSource(1); //the source is in use, should not be deleted559 int[] result = dbIntegrityService.deleteAllVersionsOfSource(1); //the source is in use, should not be deleted 560 560 assertEquals(0, result[0]); // 561 561 assertEquals(0, result[1]); … … 592 592 593 593 594 int[] resultTwo = d aoDispatcher.deleteAllVersionsOfSource(5);// the source will be deleted because it is not referred by any annotation594 int[] resultTwo = dbIntegrityService.deleteAllVersionsOfSource(5);// the source will be deleted because it is not referred by any annotation 595 595 assertEquals(3, resultTwo.length); 596 596 assertEquals(1, resultTwo[0]); // source 7 is deleted … … 600 600 601 601 /** 602 * Test of deleteAnnotationWithSources method, of class D aoDispatcherImpl.602 * Test of deleteAnnotationWithSources method, of class DBIntegrityServiceImlp. 603 603 */ 604 604 @Test … … 628 628 } 629 629 }); 630 int[] result = d aoDispatcher.deleteAnnotation(3);// the source will be deleted because it is not referred by any annotation630 int[] result = dbIntegrityService.deleteAnnotation(3);// the source will be deleted because it is not referred by any annotation 631 631 assertEquals(4, result.length); 632 632 assertEquals(1, result[0]); // annotation 3 is deleted … … 643 643 // newSourceInfo.setVersion(null); 644 644 // 645 // Source result = d aoDispatcher.createSource(newSourceInfo);645 // Source result = dbIntegrityService.createSource(newSourceInfo); 646 646 // assertEquals(TestBackendConstants._TEST_NEW_SOURCE_LINK, result.getLink()); 647 647 // assertFalse(null == result.getURI()); … … 655 655 // newSourceInfo.setVersion(null); 656 656 // 657 // Version result = d aoDispatcher.createVersion(newSourceInfo);657 // Version result = dbIntegrityService.createVersion(newSourceInfo); 658 658 // assertFalse(null == result.getVersion()); // will be chnaged once the schema for version is fixed: ID is added 659 659 // -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/dao/impl/JdbcNotebookDaoTest.java
r3463 r3477 51 51 "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockUserDao.xml", 52 52 "/spring-test-config/mockCachedRepresentationDao.xml", "/spring-test-config/mockVersionDao.xml", 53 "/spring-test-config/dataSource.xml", "/spring-test-config/mockD aoDispatcher.xml","/spring-config/notebookDao.xml"})53 "/spring-test-config/dataSource.xml", "/spring-test-config/mockDBIntegrityService.xml","/spring-config/notebookDao.xml"}) 54 54 public class JdbcNotebookDaoTest extends JdbcResourceDaoTest{ 55 55 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/rest/AnnotationResourceTest.java
r3461 r3477 18 18 package eu.dasish.annotation.backend.rest; 19 19 20 import eu.dasish.annotation.backend.dao.D aoDispatcher;20 import eu.dasish.annotation.backend.dao.DBIntegrityService; 21 21 import com.sun.jersey.api.client.GenericType; 22 22 import eu.dasish.annotation.backend.Helpers; … … 47 47 48 48 @RunWith(value = SpringJUnit4ClassRunner.class) 49 @ContextConfiguration(locations = { "/spring-test-config/mockery.xml", "/spring-test-config/mockD aoDispatcher.xml",49 @ContextConfiguration(locations = { "/spring-test-config/mockery.xml", "/spring-test-config/mockDBIntegrityService.xml", 50 50 "/spring-test-config/mockAnnotationDao.xml","/spring-test-config/mockUserDao.xml", "/spring-test-config/mockNotebookDao.xml", 51 51 "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockVersionDao.xml", "/spring-test-config/mockCachedRepresentationDao.xml"}) … … 55 55 private Mockery mockery; 56 56 @Autowired 57 private D aoDispatcherdaoDispatcher;57 private DBIntegrityService daoDispatcher; 58 58 @Autowired 59 59 private AnnotationResource annotationResource; -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/rest/AnnotationsTest.java
r3461 r3477 18 18 package eu.dasish.annotation.backend.rest; 19 19 20 import eu.dasish.annotation.backend.dao.D aoDispatcher;20 import eu.dasish.annotation.backend.dao.DBIntegrityService; 21 21 import com.sun.jersey.api.client.ClientResponse; 22 22 import eu.dasish.annotation.backend.Helpers; … … 40 40 public class AnnotationsTest extends ResourcesTest{ 41 41 42 private D aoDispatcherdaoDispatcher;42 private DBIntegrityService daoDispatcher; 43 43 44 44 public AnnotationsTest() { 45 45 super(AnnotationResource.class.getPackage().getName()); 46 daoDispatcher = webAppContext.getBean(D aoDispatcher.class);46 daoDispatcher = webAppContext.getBean(DBIntegrityService.class); 47 47 } 48 48 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/java/eu/dasish/annotation/backend/rest/NotebookResourceTest.java
r3463 r3477 44 44 @RunWith(value = SpringJUnit4ClassRunner.class) 45 45 @ContextConfiguration(locations = {"/spring-test-config/dataSource.xml", "/spring-test-config/mockAnnotationDao.xml", "/spring-test-config/mockUserDao.xml", 46 "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockNotebookDao.xml", "/spring-test-config/mockD aoDispatcher.xml", "/spring-test-config/mockery.xml"})46 "/spring-test-config/mockSourceDao.xml", "/spring-test-config/mockNotebookDao.xml", "/spring-test-config/mockDBIntegrityService.xml", "/spring-test-config/mockery.xml"}) 47 47 public class NotebookResourceTest { 48 48 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/test/resources/spring-test-config/mockDBIntegrityService.xml
r3450 r3477 29 29 30 30 <!-- Mocked dispatcher --> 31 <bean id="d aoDispatcher" factory-bean="mockObjectsFactory" factory-method="newDaoDispatcher" />31 <bean id="dbIntegrityService" factory-bean="mockObjectsFactory" factory-method="newDBIntegrityService" /> 32 32 33 33 </beans>
Note: See TracChangeset
for help on using the changeset viewer.