memoization-core/src/test/java/de/xn__ho_hia/memoization/shared/MemoizationDefaultsTest.java
@Test
    public void shouldConcatHashCodesWithWhitespaceInbetween() {
        // given
        final BiFunction<Object, Object, String> keyFunction = MemoizationDefaults.hashCodeKeyFunction();

        // when
        final String calculatedKey = keyFunction.apply(Integer.valueOf(1), Integer.valueOf(2));

        // when
        Assert.assertEquals("Calculated key does not match expectations", "1 2", calculatedKey); //$NON-NLS-1$
    }
/**
     * Ensures that the default key function concats the hash-codes of its two inputs by placing a whitespace inbetween.
     */
Ensures that the default key function concats the hash-codes of its two inputs by placing a whitespace inbetween.
Ensures that the default key function concats the hash - codes of its two inputs by placing a whitespace inbetween .
@Test
    public void shouldConcatHashCodesWithWhitespaceInbetween() {
        final BiFunction<Object, Object, String> keyFunction = MemoizationDefaults.hashCodeKeyFunction();
        final String calculatedKey = keyFunction.apply(Integer.valueOf(1), Integer.valueOf(2));
        Assert.assertEquals("Calculated key does not match expectations", "1 2", calculatedKey); 
    }
@ Test public void shouldConcatHashCodesWithWhitespaceInbetween ( ) { final BiFunction < Object , Object , String > keyFunction = MemoizationDefaults . hashCodeKeyFunction ( ) ; final String calculatedKey = keyFunction . apply ( Integer . valueOf ( 1 ) , Integer . valueOf ( 2 ) ) ; Assert . assertEquals ( "Calculated key does not match expectations" , "1 2" , calculatedKey ) ; }
Ensures that the default key function concats the hash-codes of its two inputs by placing a whitespace inbetween.
Ensures that the default key function concats the hash - codes of its two inputs by placing a whitespace inbetween .
// given // when // when //$NON-NLS-1$