org.sonatype.aether.test.util.connector.suite
Class ConnectorTestSetup.AbstractConnectorTestSetup

java.lang.Object
  extended by org.sonatype.aether.test.util.connector.suite.ConnectorTestSetup.AbstractConnectorTestSetup
All Implemented Interfaces:
ConnectorTestSetup
Enclosing interface:
ConnectorTestSetup

public abstract static class ConnectorTestSetup.AbstractConnectorTestSetup
extends Object
implements ConnectorTestSetup

Empty implementation of ConnectorTestSetup.

Author:
Benjamin Hanzelmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.aether.test.util.connector.suite.ConnectorTestSetup
ConnectorTestSetup.AbstractConnectorTestSetup
 
Constructor Summary
ConnectorTestSetup.AbstractConnectorTestSetup()
           
 
Method Summary
 void after(RepositorySystemSession session, RemoteRepository repository, Map<String,Object> context)
          This method is called after each test of the bundle is executed.
 Map<String,Object> beforeClass(RepositorySystemSession session)
          This method is called before the first test of the bundle is executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonatype.aether.test.util.connector.suite.ConnectorTestSetup
before, factory
 

Constructor Detail

ConnectorTestSetup.AbstractConnectorTestSetup

public ConnectorTestSetup.AbstractConnectorTestSetup()
Method Detail

beforeClass

public Map<String,Object> beforeClass(RepositorySystemSession session)
                               throws 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:
Exception

after

public void after(RepositorySystemSession session,
                  RemoteRepository repository,
                  Map<String,Object> context)
           throws 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:
Exception


Copyright © 2010-2012. All Rights Reserved.