@Test public void testCombine() { Object param1 = new Object(); Object param2 = new Object(); assertSame(param1, new NonNullResultsCombiner<Object>().combine(new PartialMapperResponse<Object, Object>( param1, null), param2, null)); assertSame(param1, new NonNullResultsCombiner<Object>().combine(new PartialMapperResponse<Object, Object>( param1, null), null, null)); assertSame(param2, new NonNullResultsCombiner<Object>().combine(new PartialMapperResponse<Object, Object>(null, null), param2, null)); assertNull(new NonNullResultsCombiner<Object>().combine(new PartialMapperResponse<Object, Object>(null, null), null, null)); }
public T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request) { return inResponse1.getResponse() != null ? inResponse1.getResponse() : inResponse2; }
NonNullResultsCombiner implements ResultsCombinerStrategy<Object, T> { public T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request) { return inResponse1.getResponse() != null ? inResponse1.getResponse() : inResponse2; } }
NonNullResultsCombiner implements ResultsCombinerStrategy<Object, T> { public T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request) { return inResponse1.getResponse() != null ? inResponse1.getResponse() : inResponse2; }  }
NonNullResultsCombiner implements ResultsCombinerStrategy<Object, T> { public T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request) { return inResponse1.getResponse() != null ? inResponse1.getResponse() : inResponse2; }  T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request); }
NonNullResultsCombiner implements ResultsCombinerStrategy<Object, T> { public T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request) { return inResponse1.getResponse() != null ? inResponse1.getResponse() : inResponse2; }  T combine(final PartialMapperResponse<Object, T> inResponse1, final T inResponse2, final Object request);  }