org.sonatype.aether.test.util.connector.suite
Class ConnectorTestSuiteSetup

java.lang.Object
  extended by org.sonatype.aether.test.util.connector.suite.ConnectorTestSuiteSetup
Direct Known Subclasses:
ConnectorTestSuite

public abstract class ConnectorTestSuiteSetup
extends Object

Provides the Junit-callback methods to configure the ConnectorTestSuite per connector.

Author:
Benjamin Hanzelmann

Field Summary
protected  RemoteRepository repository
           
protected  TestRepositorySystemSession session
           
 
Constructor Summary
ConnectorTestSuiteSetup(ConnectorTestSetup setup)
           
 
Method Summary
 void after()
          Calls ConnectorTestSetup.after(org.sonatype.aether.RepositorySystemSession, RemoteRepository, Map).
 void before()
          If called for the first time, calls ConnectorTestSetup.beforeClass(org.sonatype.aether.RepositorySystemSession).
protected  RepositoryConnectorFactory factory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

protected RemoteRepository repository

session

protected TestRepositorySystemSession session
Constructor Detail

ConnectorTestSuiteSetup

public ConnectorTestSuiteSetup(ConnectorTestSetup setup)
Parameters:
setup - The connector-specific callback handler to use.
Method Detail

before

public void before()
            throws Exception
If called for the first time, calls ConnectorTestSetup.beforeClass(org.sonatype.aether.RepositorySystemSession). Always calls ConnectorTestSetup.before(org.sonatype.aether.RepositorySystemSession, Map).

Throws:
Exception

after

public void after()
           throws Exception
Calls ConnectorTestSetup.after(org.sonatype.aether.RepositorySystemSession, RemoteRepository, Map).

Throws:
Exception

factory

protected RepositoryConnectorFactory factory()
Returns:
the factory as determined by ConnectorTestSetup.factory().


Copyright © 2010-2013. All Rights Reserved.