<commit_before># 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
Does not require any specific test library such as JUnit or TestNG

Requires Java 8 (or higher)


##Latest release

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.aro-tech/tdd-mixins-junit4/badge.svg)](http://search.maven.org/#artifactdetails|com.github.aro-tech|tdd-mixins-junit4|0.7.1|jar)

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

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

In Maven:

```html
<dependency>
  <groupId>com.github.aro-tech</groupId>
  <artifactId>tdd-mixins-junit4</artifactId>
  <version>0.7.1</version>
</dependency>
```

##Example usage 
```
	public class MyTest implements ExtendedMockito, AllAssertions { 
	...
```	

```
	when(mock.extractInformationFrom(toStringContainsAllOf("Gollum", "Smeagol"))).thenReturn("Shire. Baggins.");
```

```
	assertThat(answer).contains("Shire", "Baggins");<commit_msg>Added test scope to maven snippet in README<commit_after># 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
Does not require any specific test library such as JUnit or TestNG

Requires Java 8 (or higher)


##Latest release

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.aro-tech/tdd-mixins-junit4/badge.svg)](http://search.maven.org/#artifactdetails|com.github.aro-tech|tdd-mixins-junit4|0.7.1|jar)

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

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

In Maven:

```html
<dependency>
  <groupId>com.github.aro-tech</groupId>
  <artifactId>tdd-mixins-junit4</artifactId>
  <version>0.7.1</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");
{'fraction_non_alphanumeric': 0.1504739336492891, 'fraction_numerical': 0.018957345971563982, 'mean_word_length': 5.148058252427185, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2027453', 'n_tokens_mistral': 944, 'n_tokens_neox': 872, 'n_words': 179}