[
https://issues.apache.org/jira/browse/SLING-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marius Petria updated SLING-3478:
---------------------------------
Attachment: SLING-3478.1.patch
Hi Bertrand,
I dropped the base class and instead made it an utility class
SlingInstanceManager. A test with multiple instances will look like this:
{code}
public class MultipleOsgiConsoleTest {
SlingInstanceManager manager = new SlingInstanceManager("instance1",
"instance2");
@Test
public void testSomeConsolePaths() throws Exception {
for (SlingInstance slingInstance : manager.getInstances()) {
testSomeConsolePaths(slingInstance);
}
}
.....
}
{code}
> Facilitate writing of integration tests for multiple instances
> --------------------------------------------------------------
>
> Key: SLING-3478
> URL: https://issues.apache.org/jira/browse/SLING-3478
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Reporter: Marius Petria
> Attachments: SLING-3478.1.patch, SLING-3478.patch
>
>
> Facilitate writing of integration tests for multiple instances. This is
> needed for better testing features like replication or topology discovery.
> Create a base class for such tests and a way to configure multiple instances
> and also sample integration test.
--
This message was sent by Atlassian JIRA
(v6.2#6252)