Skip to content

Latest commit

 

History

History
115 lines (87 loc) · 2.32 KB

UPGRADING-2.0.md

File metadata and controls

115 lines (87 loc) · 2.32 KB

Upgrade guide: 1.x -> 2.0

  1. Maven coordinates have been changed. The package is now named eu.xenit.testing.integration-testing:alfresco-remote-testrunner.

    Old New
    eu.xenit.testing:integration-testing
    
    eu.xenit.testing.integration-testing:alfresco-remote-testrunner
    
  2. The eu.xenit.apix.integrationtesting.runner.ApixIntegration class has been removed. Use the eu.xenit.testing.integrationtesting.runner.AlfrescoTestRunner class instead.

    Old New
    import eu.xenit.apix.integrationtesting.runner.ApixIntegration;
    import org.junit.runner.RunWith;
    
    
    @RunWith(ApixIntegration.class)
    class XYZ {
    // [...]
    }
    import eu.xenit.testing.integrationtesting.runner.AlfrescoTestRunner;
    import org.junit.runner.RunWith;
    
    
    @RunWith(AlfrescoTestRunner.class)
    class XYZ {
    // [...]
    }
  3. Usage of apix-integration-testing.properties has been removed. Instead of configuring the Alfresco server in this file, specify configuration as the Java system property eu.xenit.testing.integrationtesting.remote when running tests.

  4. Usage of the system properties alfresco.url, username and password to configure the Alfresco server, use the single system property eu.xenit.testing.integrationtesting.remote.

    Old New
    -Dalfresco.url=http://localhost:8080/alfresco -Dusername=admin -Dpassword=mypassword
    
    -Deu.xenit.testing.integrationtesting.remote=http://admin:mypassword@localhost:8080/alfresco/s
    
    test {
      systemProperty('alfresco.url', 'http://localhost:8080/alfresco')
      systemProperty('username', 'admin')
      systemProperty('password', 'mypassword')
    }
    test {
        systemProperty('eu.xenit.testing.integrationtesting.remote', "http://admin:mypassword@localhost:8080:alfresco/s")
    }