You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (Created) (JIRA)" <ji...@apache.org> on 2012/01/23 17:40:40 UTC
[jira] [Created] (SLING-2380) Make RepositoryTestBase's repository
usable from JUnit 4.x style tests
Make RepositoryTestBase's repository usable from JUnit 4.x style tests
----------------------------------------------------------------------
Key: SLING-2380
URL: https://issues.apache.org/jira/browse/SLING-2380
Project: Sling
Issue Type: Improvement
Components: Testing
Reporter: Bertrand Delacretaz
Assignee: Bertrand Delacretaz
Priority: Minor
Tests currently need to inherit from that class to get a TestRepository, which forces them to use the old JUnit3.x style.
I'll add a static method to that class, that JUnit 4.x tests can use to get a repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2380) Make RepositoryTestBase's
repository usable from JUnit 4.x style tests
Posted by "Carsten Ziegeler (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191250#comment-13191250 ]
Carsten Ziegeler commented on SLING-2380:
-----------------------------------------
Isn't RepositoryUtil already providing the static methods?
> Make RepositoryTestBase's repository usable from JUnit 4.x style tests
> ----------------------------------------------------------------------
>
> Key: SLING-2380
> URL: https://issues.apache.org/jira/browse/SLING-2380
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> Tests currently need to inherit from that class to get a TestRepository, which forces them to use the old JUnit3.x style.
> I'll add a static method to that class, that JUnit 4.x tests can use to get a repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SLING-2380) Make RepositoryTestBase's repository
usable from JUnit 4.x style tests
Posted by "Bertrand Delacretaz (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-2380.
----------------------------------------
Resolution: Fixed
RepositoryProvider added in revision 1234906, RepositoryTestBase refactored to use it.
> Make RepositoryTestBase's repository usable from JUnit 4.x style tests
> ----------------------------------------------------------------------
>
> Key: SLING-2380
> URL: https://issues.apache.org/jira/browse/SLING-2380
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Commons Testing 2.0.8
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: Commons Testing 2.0.10
>
>
> Tests currently need to inherit from that class to get a TestRepository, which forces them to use the old JUnit3.x style.
> I'll add a static method to that class, that JUnit 4.x tests can use to get a repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (SLING-2380) Make RepositoryTestBase's repository
usable from JUnit 4.x style tests
Posted by "Carsten Ziegeler (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed SLING-2380.
-----------------------------------
> Make RepositoryTestBase's repository usable from JUnit 4.x style tests
> ----------------------------------------------------------------------
>
> Key: SLING-2380
> URL: https://issues.apache.org/jira/browse/SLING-2380
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Commons Testing 2.0.8
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: Commons Testing 2.0.10
>
>
> Tests currently need to inherit from that class to get a TestRepository, which forces them to use the old JUnit3.x style.
> I'll add a static method to that class, that JUnit 4.x tests can use to get a repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SLING-2380) Make RepositoryTestBase's repository
usable from JUnit 4.x style tests
Posted by "Bertrand Delacretaz (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SLING-2380:
---------------------------------------
Affects Version/s: Commons Testing 2.0.8
Fix Version/s: Commons Testing 2.0.10
> Make RepositoryTestBase's repository usable from JUnit 4.x style tests
> ----------------------------------------------------------------------
>
> Key: SLING-2380
> URL: https://issues.apache.org/jira/browse/SLING-2380
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Commons Testing 2.0.8
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: Commons Testing 2.0.10
>
>
> Tests currently need to inherit from that class to get a TestRepository, which forces them to use the old JUnit3.x style.
> I'll add a static method to that class, that JUnit 4.x tests can use to get a repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2380) Make RepositoryTestBase's
repository usable from JUnit 4.x style tests
Posted by "Bertrand Delacretaz (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191263#comment-13191263 ]
Bertrand Delacretaz commented on SLING-2380:
--------------------------------------------
Yes, but it doesn't have the on-demand initialization and automatic shutdown that RepositoryTestBase provides.
> Make RepositoryTestBase's repository usable from JUnit 4.x style tests
> ----------------------------------------------------------------------
>
> Key: SLING-2380
> URL: https://issues.apache.org/jira/browse/SLING-2380
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> Tests currently need to inherit from that class to get a TestRepository, which forces them to use the old JUnit3.x style.
> I'll add a static method to that class, that JUnit 4.x tests can use to get a repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira