]> source.dussan.org Git - archiva.git/commit
refactor service tests
authorBrett Porter <brett@apache.org>
Thu, 31 Jul 2014 23:50:00 +0000 (09:50 +1000)
committerBrett Porter <brett@apache.org>
Fri, 1 Aug 2014 02:51:12 +0000 (12:51 +1000)
commit8b1e1ffa7120b6da1cef6e357d99c290014d9d37
tree5a61c0b21cbb7905a1991ee12e5f9914509a5e12
parent2b8f78afe223f8bf2fbd9690ccec9f5bccc55686
refactor service tests

Split out scan call to be explicit to make it easier to refactor duplicate
sections, then move repeated configuration to before/after methods.

Make sure scanning has finished before operations that might concurrently try
to modify the metadata. This also means we can now verify the deletion of the
repository is successful
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/MergeRepositoriesServiceTest.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java