Skip to content

Commit

Permalink
Update to latest object builder (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparams authored Nov 29, 2018
1 parent 2b17d5f commit fee514d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apply plugin: 'maven'
apply from: 'publish.gradle'

group = 'com.jparams'
version = '1.4.3'
version = '1.4.4'

sourceCompatibility = 1.8

Expand All @@ -24,7 +24,7 @@ repositories {
}

dependencies {
compile 'com.jparams:object-builder:2.0.1'
compile 'com.jparams:object-builder:2.1.1'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:3.11.1'
testCompile 'eu.codearte.catch-exception:catch-exception:1.4.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private ToStringVerifier(final Collection<Class<?>> classes)
{
this.configuration = Configuration.defaultConfiguration().withDefaultBuildStrategy(BuildStrategy.AUTO).withFailOnError(false).withFailOnWarning(false);
this.classes = classes.stream().filter(ToStringVerifier::isTestableClass).collect(Collectors.toList());
this.classes.forEach(clazz -> configuration.withBuildStrategy(Type.forClass(clazz).build(), BuildStrategy.FIELD_INJECTION));
this.classes.forEach(clazz -> configuration.withBuildStrategy(Type.forClass(clazz), BuildStrategy.FIELD_INJECTION));

if (this.classes.isEmpty())
{
Expand Down Expand Up @@ -292,7 +292,7 @@ public ToStringVerifier withFailOnExcludedFields(final boolean failOnExcludedFie
*/
public <S> ToStringVerifier withPrefabValue(final Class<S> type, final S prefabValue)
{
this.configuration.withPrefabValue(Type.forClass(type).build(), prefabValue);
this.configuration.withPrefabValue(Type.forClass(type), prefabValue);
return this;
}

Expand Down

0 comments on commit fee514d

Please sign in to comment.