public abstract class

InjectedTestCase

extends TestCase
implements Module
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ org.eclipse.sisu.launch.InjectedTestCase

Class Overview

Abstract JUnit3 TestCase that automatically binds and injects itself.

Summary

Public Constructors
InjectedTestCase()
Public Methods
void configure(Properties properties)
Custom property values.
void configure(Binder binder)
Custom injection bindings.
final String getBasedir()
final <T> T lookup(Class<T> type)
final <T> T lookup(Class<T> type, Class<? extends Annotation> qualifier)
final <T> T lookup(Class<T> type, Annotation qualifier)
final <T> T lookup(Class<T> type, String name)
BeanScanning scanning()
ClassSpace space()
SpaceModule spaceModule()
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface com.google.inject.Module
From interface junit.framework.Test

Public Constructors

public InjectedTestCase ()

Public Methods

public void configure (Properties properties)

Custom property values.

Parameters
properties The test properties

public void configure (Binder binder)

Custom injection bindings.

Parameters
binder The Guice binder

public final String getBasedir ()

public final T lookup (Class<T> type)

public final T lookup (Class<T> type, Class<? extends Annotation> qualifier)

public final T lookup (Class<T> type, Annotation qualifier)

public final T lookup (Class<T> type, String name)

public BeanScanning scanning ()

public ClassSpace space ()

public SpaceModule spaceModule ()

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception