Guice dependency injection for Jnario tests
Java Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis
gradle/wrapper
src/main/java/de/oehme/jnario/guice use new build system Oct 20, 2014
.gitignore use new build system Oct 20, 2014
.travis.yml
LICENSE
README.md
build.gradle use new build system Dec 18, 2014
gradlew
gradlew.bat

README.md

jnario-guice

Guice dependency injection for Jnario Specs

Build Status Download

Features

Just annotate your Spec class with

@CreateWith(GuiceSpecCreator) 

and optionally specify a Guice module using

@InjectWith(MyModule)

Now you can use the @Inject annotation in your spec.

@CreateWith(GuiceSpecCreator)
@InjectWith(EnglishModule)
describe Greeter "Interface Injection" {
	@Inject
	Greeter injected

	fact "the subject is injected by Guice" {
		subject.greet should be "Hello"
	}

	fact "spec variables are injected by Guice" {
		injected.greet should be "Hello"
	}
}