Skip to content

Java-8 mixins for convenient use of popular libraries in JUnit 4 test fixtures.

License

Notifications You must be signed in to change notification settings

aro-tech/tdd-mixins-junit4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdd-mixins-junit4

Java-8 default interfaces useful for a JUnit 4 test fixture

Contains AssertJ and the ExtendedMockito mixins as well as a mixin for JUnit asserts and AllAssertions which combines JUnit and AssertJ assertions

Includes JUnit 4.12 in its dependencies.

Requires Java 8 (or higher)

##Latest release

Maven Central

v1.1.29: [Release notes on github] (https://github.com/aro-tech/tdd-mixins-junit4/releases/tag/v1.1.29)

[Binary downloads] (https://oss.sonatype.org/content/groups/public/com/github/aro-tech/tdd-mixins-junit4/1.1.29/ "binaries")

In Maven:

<dependency>
  <groupId>com.github.aro-tech</groupId>
  <artifactId>tdd-mixins-junit4</artifactId>
  <version>1.1.29</version>
  <scope>test</scope>
</dependency>

##Example usage

	public class MyTest implements ExtendedMockito, AllAssertions { 
	...
	when(mock.extractInformationFrom(toStringContainsAllOf("Gollum", "Smeagol"))).thenReturn("Shire. Baggins.");
	assertThat(answer).contains("Shire", "Baggins");
	assertTrue(c == '*');

##Blog The Green Bar

About

Java-8 mixins for convenient use of popular libraries in JUnit 4 test fixtures.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages