@Test public void testCombine() { final List<Long> listA = new ArrayList<Long>(); final List<Long> listB = new ArrayList<Long>(); final PartialMapperResponse<Object, List<Long>> response = new PartialMapperResponse<Object, List<Long>>(listA, null); context.checking(new Expectations() { { oneOf(colliderMock).collide(listA, listB, MAX_RESULTS); } }); sut.combine(response, listB, null); context.assertIsSatisfied(); }
public List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2, final Object request) { return collider.collide(response1.getResponse(), response2, maxResults); }
ListColliderAdapter implements ResultsCombinerStrategy<Object, List<Long>> { public List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2, final Object request) { return collider.collide(response1.getResponse(), response2, maxResults); } }
ListColliderAdapter implements ResultsCombinerStrategy<Object, List<Long>> { public List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2, final Object request) { return collider.collide(response1.getResponse(), response2, maxResults); } ListColliderAdapter(final ListCollider inCollider, final int inMaxResults); }
ListColliderAdapter implements ResultsCombinerStrategy<Object, List<Long>> { public List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2, final Object request) { return collider.collide(response1.getResponse(), response2, maxResults); } ListColliderAdapter(final ListCollider inCollider, final int inMaxResults); List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2,
            final Object request); }
ListColliderAdapter implements ResultsCombinerStrategy<Object, List<Long>> { public List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2, final Object request) { return collider.collide(response1.getResponse(), response2, maxResults); } ListColliderAdapter(final ListCollider inCollider, final int inMaxResults); List<Long> combine(final PartialMapperResponse<Object, List<Long>> response1, final List<Long> response2,
            final Object request);  }