/** * Constructor. Its parameter comes from all values from {@code valueToTest()}. * * @param stringValue String the value for {@code testGetAsObjectWithDifferentValues()}. * @param getAsObjectExpectedResult the {@code stringValue}'s expected result in test. * @param objectValue the value to test in {@code testGetAsStringWithDifferentValues()}. * @param getAsStringExpectedResult the {@code objectValue}'s expected result in test. */ public TestConverterLocalDate( String stringValue, GetAsObjectExpectedResult getAsObjectExpectedResult, Object objectValue, GetAsStringExpectedResult getAsStringExpectedResult) { // Set the parameters for the test this.stringValue = stringValue; this.getAsObjectExpectedResult = getAsObjectExpectedResult; this.objectValue = objectValue; this.getAsStringExpectedResult = getAsStringExpectedResult; // Initialize the converter and mock the logger converter = new ConverterLocalDate(); converter.setTestLogger(mock(Logger.class)); }