public interface ConnectorTestSetup
ConnectorTestSuite
.
The specified methods have the same meaning as the corresponding JUnit4-annotations.
ConnectorTestSetup.AbstractConnectorTestSetup
Modifier and Type | Interface and Description |
---|---|
static class |
ConnectorTestSetup.AbstractConnectorTestSetup
Empty implementation of
ConnectorTestSetup . |
Modifier and Type | Method and Description |
---|---|
void |
after(RepositorySystemSession session,
RemoteRepository repository,
Map<String,Object> context)
This method is called after each test of the bundle is executed.
|
RemoteRepository |
before(RepositorySystemSession session,
Map<String,Object> context)
This method is called before each test run.
|
Map<String,Object> |
beforeClass(RepositorySystemSession session)
This method is called before the first test of the bundle is executed.
|
RepositoryConnectorFactory |
factory() |
RemoteRepository before(RepositorySystemSession session, Map<String,Object> context) throws Exception
session
- The session used for the test bundle.context
- The context provided by beforeClass(RepositorySystemSession)
.Exception
Map<String,Object> beforeClass(RepositorySystemSession session) throws Exception
session
- The session used for the test bundle.Exception
void after(RepositorySystemSession session, RemoteRepository repository, Map<String,Object> context) throws Exception
session
- The session used for the test bundle.context
- The context provided by beforeClass(RepositorySystemSession)
.repository
- the repository used in the test run.Exception
RepositoryConnectorFactory factory()
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.