expected-failure

see: http://www.ensor.cc/2012/09/allowing-junit-tests-to-pass-test-case.html

Лицензия

Лицензия

Категории

Категории

JUnit Тестирование компонентов CLI Взаимодействие с пользователем
Группа

Группа

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

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

expected-failure
Последняя версия

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

0.0.9
Дата

Дата

Тип

Тип

jar
Описание

Описание

expected-failure
see: http://www.ensor.cc/2012/09/allowing-junit-tests-to-pass-test-case.html
Ссылка на сайт

Ссылка на сайт

http://www.ensor.cc/2012/09/allowing-junit-tests-to-pass-test-case.html
Организация-разработчик

Организация-разработчик

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

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

http://github.com/mike-ensor/expected-failure/

Скачать expected-failure

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.google.guava : guava jar 13.0.1
junit : junit-dep jar 4.10

test (1)

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

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

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

Project documentation: http://mike-ensor.github.com/expected-failure/

This project creates a @Rule object to govern test cases and then provides the ability to annotate a test case with @ExpectedFailure allowing a test case that would fail to succeed.

In this example, the test case would normally fail given that the "exception" would fail based on the assertion in the exception assertion object

public class ExceptionAssertTest {

    @Rule
    public ExpectedException exception = ExpectedException.none();

    @Rule
    public ExpectedTestFailureWatcher expectedTestFailureWatcher = ExpectedTestFailureWatcher.instance();

    @Test
    @ExpectedFailure("The matcher should fail becasue exception is not a SimpleException")
    public void assertSimpleExceptionAssert_exceptionIsOfType() {
        // expected exception will be of type "SimpleException"
        exception.instanceOf(SimpleException.class);
        // throw something other than SimpleException...expect failure
        throw new RuntimeException("this is an exception");
    }
}

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

Версия
0.0.9