@Override public void validateBeforeCommit( Value[] tuple ) { delegate.validateBeforeCommit( tuple ); } }
@Override public void validateBeforeCommit( Value[] tuple ) { accessor.validateBeforeCommit( tuple ); }
@Override public void validateBeforeCommit( Value[] tuple ) { accessor.validateBeforeCommit( tuple ); } }
@Override public void validateBeforeCommit( Value[] tuple ) { instanceSelector.select( slotSelector.selectSlot( tuple, GROUP_OF ) ).validateBeforeCommit( tuple ); } }
@Test public void shouldFailValueValidationIfAnyPartFail() { // given IllegalArgumentException failure = new IllegalArgumentException( "failing" ); for ( int i = 0; i < aliveAccessors.length; i++ ) { for ( int j = 0; j < aliveAccessors.length; j++ ) { if ( i == j ) { doThrow( failure ).when( aliveAccessors[i] ).validateBeforeCommit( ArgumentMatchers.any( Value[].class ) ); } else { doAnswer( invocation -> null ).when( aliveAccessors[i] ).validateBeforeCommit( any( Value[].class ) ); } } // when try { fusionIndexAccessor.validateBeforeCommit( new Value[] {stringValue( "something" )} ); } catch ( IllegalArgumentException e ) { // then assertSame( failure, e ); } } }
@Override public void validateBeforeCommit( Value[] tuple ) { delegate.validateBeforeCommit( tuple ); } }
@Override public void validateBeforeCommit( Value[] tuple ) { accessor.validateBeforeCommit( tuple ); }
@Override public void validateBeforeCommit( Value[] tuple ) { instanceSelector.select( slotSelector.selectSlot( tuple, GROUP_OF ) ).validateBeforeCommit( tuple ); } }