org.sonatype.aether.test.util.connector.suite
Class ConnectorTestSetup.AbstractConnectorTestSetup
java.lang.Object
org.sonatype.aether.test.util.connector.suite.ConnectorTestSetup.AbstractConnectorTestSetup
- All Implemented Interfaces:
- ConnectorTestSetup
- Enclosing interface:
- ConnectorTestSetup
public abstract static class ConnectorTestSetup.AbstractConnectorTestSetup
- extends java.lang.Object
- implements ConnectorTestSetup
Empty implementation of ConnectorTestSetup
.
- Author:
- Benjamin Hanzelmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorTestSetup.AbstractConnectorTestSetup
public ConnectorTestSetup.AbstractConnectorTestSetup()
beforeClass
public java.util.Map<java.lang.String,java.lang.Object> beforeClass(RepositorySystemSession session)
throws java.lang.Exception
- Description copied from interface:
ConnectorTestSetup
- This method is called before the first test of the bundle is executed.
- Specified by:
beforeClass
in interface ConnectorTestSetup
- Parameters:
session
- The session used for the test bundle.
- Returns:
- A map acting as a context for the current test bundle run. This context will not be used by the test
cases in the suite, and is only used to provide context for the before/after/afterClass-method calls.
This might be used to save setup-specific values (port numbers, directories to clean up after tests, ...)
- Throws:
java.lang.Exception
after
public void after(RepositorySystemSession session,
RemoteRepository repository,
java.util.Map<java.lang.String,java.lang.Object> context)
throws java.lang.Exception
- Description copied from interface:
ConnectorTestSetup
- This method is called after each test of the bundle is executed. Repositories should be cleaned after each test,
as previous uploads may influence test results.
- Specified by:
after
in interface ConnectorTestSetup
- Parameters:
session
- The session used for the test bundle.repository
- the repository used in the test run.context
- The context provided by ConnectorTestSetup.beforeClass(RepositorySystemSession)
.
- Throws:
java.lang.Exception
afterClass
public void afterClass(RepositorySystemSession session,
java.util.Map<java.lang.String,java.lang.Object> context)
throws java.lang.Exception
- Description copied from interface:
ConnectorTestSetup
- This method is called after all tests of the bundle were run.
- Specified by:
afterClass
in interface ConnectorTestSetup
- Parameters:
session
- The session used for the test bundle.context
- The context provided by ConnectorTestSetup.beforeClass(RepositorySystemSession)
.
- Throws:
java.lang.Exception
Copyright © 2010 Sonatype, Inc.. All Rights Reserved.