@Test public void integer_edge_cases_work_as_expected() { assertEquals(0, IntegerPolyfill.compare(Integer.MIN_VALUE, Integer.MIN_VALUE)); assertEquals(0, IntegerPolyfill.compare(Integer.MAX_VALUE, Integer.MAX_VALUE)); assertThat(IntegerPolyfill.compare(Integer.MIN_VALUE, Integer.MAX_VALUE), is(lessThan(0))); assertThat(IntegerPolyfill.compare(Integer.MAX_VALUE, Integer.MIN_VALUE), is(greaterThan(0))); }
public static int compare(int x, int y) { return (x < y) ? -1 : ((x == y) ? 0 : 1); }
IntegerPolyfill { public static int compare(int x, int y) { return (x < y) ? -1 : ((x == y) ? 0 : 1); } }
IntegerPolyfill { public static int compare(int x, int y) { return (x < y) ? -1 : ((x == y) ? 0 : 1); }  }
IntegerPolyfill { public static int compare(int x, int y) { return (x < y) ? -1 : ((x == y) ? 0 : 1); }  static int compare(int x, int y); }
IntegerPolyfill { public static int compare(int x, int y) { return (x < y) ? -1 : ((x == y) ? 0 : 1); }  static int compare(int x, int y);  }