com.github.grzesiek_galezowski.test_environment.ValueObjectBehaviorCondition Maven / Gradle / Ivy
package com.github.grzesiek_galezowski.test_environment;
import org.assertj.core.api.Condition;
/**
* Created by astral whenReceives 22.02.2016.
*/
public class ValueObjectBehaviorCondition extends Condition> {
@Override
public boolean matches(final Class> clazz) {
try {
XAssert.assertValueObject(clazz);
} catch (final Throwable e) {
describedAs(e.toString());
return false;
}
return true;
}
}