// Path: library/src/main/java/com/comuto/validator/UnsupportedException.java
// public class UnsupportedException extends RuntimeException {
//     /**
//      * Constructs a new {@code RuntimeException} with the current stack trace
//      * and the specified detail message.
//      *
//      * @param constraint the constraint for this exception.
//      * @param o the object invalid value;
//      * @param propertyName the property.
//      */
//     public UnsupportedException(Constraint constraint, Object o, String propertyName) {
//         super("Constraint: "
//             + constraint.getClass().getSimpleName()
//             + " cannot handle "
//             + o.getClass().getName()
//             + "on property: "
//             + propertyName
//             + ". If you want to validate a custom Object, you can create a custom Constraint which extends this one and override validate().");
//     }
// }
// 
// Path: library/src/test/java/com/comuto/validator/Utils.java
// public static void assertEmpty(String message, Iterable<?> iterable) {
//     if (iterable.iterator().hasNext()) {
//         failNotEmpty(message, iterable.toString());
//     }
// }
// 
// Path: library/src/test/java/com/comuto/validator/Utils.java
// public static void assertNotEmpty(String message, Iterable<?> iterable) {
//     if (!iterable.iterator().hasNext()) {
//         failEmpty(message);
//     }
// }


import com.comuto.validator.UnsupportedException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static com.comuto.validator.Utils.assertEmpty;
import static com.comuto.validator.Utils.assertNotEmpty;
package com.comuto.validator.constraint;



@RunWith(RobolectricTestRunner.class) @Config(manifest = Config.NONE) public class EqualsConstraintTest
    extends BaseConstraintTest {

    private static final String VALID = "test";
    public static final String EXPECTED_VALUE = VALID;
    public static final String NOT_EXPECTED_VALUE = "not";
    private static final String PROPERTY_NAME = "property_not_equals";

// Path: library/src/main/java/com/comuto/validator/UnsupportedException.java
// public class UnsupportedException extends RuntimeException {
//     /**
//      * Constructs a new {@code RuntimeException} with the current stack trace
//      * and the specified detail message.
//      *
//      * @param constraint the constraint for this exception.
//      * @param o the object invalid value;
//      * @param propertyName the property.
//      */
//     public UnsupportedException(Constraint constraint, Object o, String propertyName) {
//         super("Constraint: "
//             + constraint.getClass().getSimpleName()
//             + " cannot handle "
//             + o.getClass().getName()
//             + "on property: "
//             + propertyName
//             + ". If you want to validate a custom Object, you can create a custom Constraint which extends this one and override validate().");
//     }
// }
// 
// Path: library/src/test/java/com/comuto/validator/Utils.java
// public static void assertEmpty(String message, Iterable<?> iterable) {
//     if (iterable.iterator().hasNext()) {
//         failNotEmpty(message, iterable.toString());
//     }
// }
// 
// Path: library/src/test/java/com/comuto/validator/Utils.java
// public static void assertNotEmpty(String message, Iterable<?> iterable) {
//     if (!iterable.iterator().hasNext()) {
//         failEmpty(message);
//     }
// }


// Path: library/src/test/java/com/comuto/validator/constraint/EqualsConstraintTest.java
import com.comuto.validator.UnsupportedException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static com.comuto.validator.Utils.assertEmpty;
import static com.comuto.validator.Utils.assertNotEmpty;

package com.comuto.validator.constraint;



@RunWith(RobolectricTestRunner.class) @Config(manifest = Config.NONE) public class EqualsConstraintTest
    extends BaseConstraintTest {

    private static final String VALID = "test";
    public static final String EXPECTED_VALUE = VALID;
    public static final String NOT_EXPECTED_VALUE = "not";
    private static final String PROPERTY_NAME = "property_not_equals";

    @Test