/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ocelotds.integration.conditions;

import org.assertj.core.api.Condition;

/**
 *
 * @author hhfrancois
 */
public class AreAtLeastOneDifferent extends Condition<Object> {

	final Object[] ref;

	public AreAtLeastOneDifferent(Object[] ref) {
		this.ref = ref;
	}

	@Override
	public boolean matches(Object t) {
		for (Object object : ref) {
			if (!object.equals(t)) {
				return true;
			}
		}
		return false;
	}
}

@@ -305,16 +305,31 @@
 ancois%0D%0A
+ * @param %3CT%3E%0D%0A
  */%0D%0Apub
@@ -360,16 +360,20 @@
 ifferent
+%3CT%3E 
  extends
@@ -387,15 +387,11 @@
 ion%3C
-Object%3E
+T%3E 
  %7B%0D%0A
@@ -399,24 +399,27 @@
 %0A%09final 
-Object%5B%5D
+Iterable%3CT%3E
  ref;%0D%0A%0D
@@ -454,16 +454,19 @@
 ent(
-Object%5B%5D
+Iterable%3CT%3E
  ref
@@ -531,22 +531,17 @@
 matches(
-Object
+T
  t) %7B%0D%0A%09
@@ -550,14 +550,9 @@
 or (
-Object
+T
  obj

improve multicall test