@Test public void shouldReturnXLessThanY() { J2735BsmCoreData testDataX = new J2735BsmCoreData(); testDataX.setSecMark(5); J2735BsmCoreData testDataY = new J2735BsmCoreData(); testDataY.setSecMark(6); J2735Bsm bsmX = new J2735Bsm(); bsmX.setCoreData(testDataX); J2735Bsm bsmY = new J2735Bsm(); bsmY.setCoreData(testDataY); BsmComparator testBsmComparator = new BsmComparator(); assertEquals(-1, testBsmComparator.compare(bsmX, bsmY)); }
@Override public int compare(J2735Bsm x, J2735Bsm y) { int xt = x.getCoreData().getSecMark(); int yt = y.getCoreData().getSecMark(); return Integer.compare(xt, yt); }
BsmComparator implements Comparator<J2735Bsm> { @Override public int compare(J2735Bsm x, J2735Bsm y) { int xt = x.getCoreData().getSecMark(); int yt = y.getCoreData().getSecMark(); return Integer.compare(xt, yt); } }
BsmComparator implements Comparator<J2735Bsm> { @Override public int compare(J2735Bsm x, J2735Bsm y) { int xt = x.getCoreData().getSecMark(); int yt = y.getCoreData().getSecMark(); return Integer.compare(xt, yt); }  }
BsmComparator implements Comparator<J2735Bsm> { @Override public int compare(J2735Bsm x, J2735Bsm y) { int xt = x.getCoreData().getSecMark(); int yt = y.getCoreData().getSecMark(); return Integer.compare(xt, yt); }  @Override int compare(J2735Bsm x, J2735Bsm y); }
BsmComparator implements Comparator<J2735Bsm> { @Override public int compare(J2735Bsm x, J2735Bsm y) { int xt = x.getCoreData().getSecMark(); int yt = y.getCoreData().getSecMark(); return Integer.compare(xt, yt); }  @Override int compare(J2735Bsm x, J2735Bsm y);  }