guice-junit-test-runner

A simple Guice JUnit test runner.

Лицензия

Лицензия

Категории

Категории

JUnit Тестирование компонентов GUI Взаимодействие с пользователем SBE Данные Data Structures Guice Библиотеки уровня приложения Dependency Injection
Группа

Группа

com.carlosbecker
Идентификатор

Идентификатор

guice-junit-test-runner
Последняя версия

Последняя версия

1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

guice-junit-test-runner
A simple Guice JUnit test runner.
Система контроля версий

Система контроля версий

http://github.com/caarlos0/guice-junit-test-runner

Скачать guice-junit-test-runner

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.carlosbecker/guice-junit-test-runner/ -->
<dependency>
    <groupId>com.carlosbecker</groupId>
    <artifactId>guice-junit-test-runner</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.carlosbecker/guice-junit-test-runner/
implementation 'com.carlosbecker:guice-junit-test-runner:1.1'
// https://jarcasting.com/artifacts/com.carlosbecker/guice-junit-test-runner/
implementation ("com.carlosbecker:guice-junit-test-runner:1.1")
'com.carlosbecker:guice-junit-test-runner:jar:1.1'
<dependency org="com.carlosbecker" name="guice-junit-test-runner" rev="1.1">
  <artifact name="guice-junit-test-runner" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.carlosbecker', module='guice-junit-test-runner', version='1.1')
)
libraryDependencies += "com.carlosbecker" % "guice-junit-test-runner" % "1.1"
[com.carlosbecker/guice-junit-test-runner "1.1"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
com.google.inject : guice jar 3.0
javax.inject : javax.inject jar 1

test (1)

Идентификатор библиотеки Тип Версия
org.hamcrest : hamcrest-all jar 1.3

Модули Проекта

Данный проект не имеет модулей.

guice-junit-test-runner Build Status Coverage Status Stories in Ready Maven Central

A very simple artifact, with no dependencies besides JUnit and Guice, which is intended to make it easier to test your Guice code.

Usage

Add the dependency to your pom.xml:

<dependency>
	<groupId>com.carlosbecker</groupId>
	<artifactId>guice-junit-test-runner</artifactId>
	<version>1.1</version>
	<scope>test</scope>
</dependency>

Write your tests:

@RunWith(GuiceTestRunner.class)
@GuiceModules(MyModule.class)
public class MyTest {
	@Inject
	private Something something;

	@Test
	public void testItWorks() throws Exception {
		Assert.assertThat(something.doSomething(), CoreMatchers.notNullValue());
	}
}

And that's it!

How to contribute

Fork repository, make changes, send a pull request. I will review your changes and apply them to the master branch shortly. To avoid frustration, previously build your branch with:

mvn clean install -Pqulice

Got questions?

If you have questions or general suggestions, don't hesitate to submit a new Github issue.

Версии библиотеки

Версия
1.1
1.0