### Question:
Check { public static void different(int a, int b) { if (a == b) { throw new LionEngineException(ERROR_ARGUMENT + String.valueOf(a) + ERROR_DIFFERENT + String.valueOf(b)); } } private  Check(); static void superiorOrEqual(int a, int b); static void superiorOrEqual(double a, double b); static void superiorStrict(int a, int b); static void superiorStrict(double a, double b); static void inferiorOrEqual(int a, int b); static void inferiorOrEqual(double a, double b); static void inferiorStrict(int a, int b); static void inferiorStrict(double a, double b); static void different(int a, int b); static void different(double a, double b); static void equality(int a, int b); static void notNull(Object object);  }### Answer:
@Test void testDifferent() { for (int i = -Constant.HUNDRED; i < Constant.HUNDRED; i++) { for (int j = -Constant.HUNDRED; j < Constant.HUNDRED; j++) { if (i != j) { Check.different(i, j); } } } }
@Test void testDifferentDouble() { for (double i = -Constant.HUNDRED; Double.compare(i, Constant.HUNDRED) < 0; i += 0.9) { for (double j = -Constant.HUNDRED; Double.compare(j, Constant.HUNDRED) < 0; j += 0.9) { if (Double.compare(i, j) != 0) { Check.different(i, j); } } } }
@Test void testDifferentFail() { for (int i = -Constant.HUNDRED; i < Constant.HUNDRED; i++) { final int a = i; assertThrows(() -> Check.different(a, a), Check.ERROR_ARGUMENT + a + Check.ERROR_DIFFERENT + a); } assertThrows(() -> Check.different(Integer.MIN_VALUE, Integer.MIN_VALUE), Check.ERROR_ARGUMENT + Integer.MIN_VALUE + Check.ERROR_DIFFERENT + Integer.MIN_VALUE); }
@Test void testDifferentDoubleFail() { for (double i = -Constant.HUNDRED; Double.compare(i, Constant.HUNDRED) < 0; i += 0.9) { final double a = i; assertThrows(() -> Check.different(a, a), Check.ERROR_ARGUMENT + a + Check.ERROR_DIFFERENT + a); } assertThrows(() -> Check.different(Double.MIN_VALUE, Double.MIN_VALUE), Check.ERROR_ARGUMENT + Double.MIN_VALUE + Check.ERROR_DIFFERENT + Double.MIN_VALUE); }