-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALFREDAPI-548-split [Update] Loading in beans via overving and constr…
…uctors
- Loading branch information
1 parent
d4f19b8
commit 0bf836c
Showing
83 changed files
with
491 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
apix-integrationtests/alfresco/src/main/java/eu/xenit/apix/BaseApplicationContextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package eu.xenit.apix; | ||
|
||
import com.github.ruediste.remoteJUnit.client.RemoteTestRunner; | ||
import eu.xenit.apix.alfresco.ApixToAlfrescoConversion; | ||
import eu.xenit.apix.server.ApplicationContextProvider; | ||
import org.alfresco.repo.admin.SysAdminParams; | ||
import org.alfresco.repo.model.Repository; | ||
import org.alfresco.repo.transaction.RetryingTransactionHelper; | ||
import org.alfresco.service.ServiceRegistry; | ||
import org.alfresco.service.cmr.security.AuthenticationService; | ||
import org.alfresco.service.transaction.TransactionService; | ||
import org.junit.runner.RunWith; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.context.ApplicationContext; | ||
|
||
@RunWith(RemoteTestRunner.class) | ||
public abstract class BaseApplicationContextTest { | ||
private final static Logger logger = LoggerFactory.getLogger(BaseApplicationContextTest.class); | ||
|
||
protected ApixToAlfrescoConversion c; | ||
protected ServiceRegistry serviceRegistry; | ||
protected Repository repository; | ||
protected ApplicationContext testApplicationContext; | ||
protected AuthenticationService authenticationService; | ||
protected SysAdminParams sysAdminParams; | ||
protected TransactionService transactionService; | ||
protected RetryingTransactionHelper transactionHelper; | ||
|
||
public BaseApplicationContextTest() { | ||
// initialise the static application-context | ||
testApplicationContext = ApplicationContextProvider.getApplicationContext(); | ||
serviceRegistry = testApplicationContext.getBean(ServiceRegistry.class); | ||
c = testApplicationContext.getBean(ApixToAlfrescoConversion.class); | ||
repository = testApplicationContext.getBean(Repository.class); | ||
sysAdminParams = serviceRegistry.getSysAdminParams(); | ||
authenticationService = serviceRegistry.getAuthenticationService(); | ||
transactionService = testApplicationContext.getBean(TransactionService.class); | ||
transactionHelper = testApplicationContext.getBean("retryingTransactionHelper", RetryingTransactionHelper.class); | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
...grationtests/alfresco/src/main/java/eu/xenit/apix/rest/staging/tests/StagingBaseTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.