@Test void convertToType() { UserReference userReference = () -> false; when(this.userReferenceResolver.resolve("space.userPage")).thenReturn(userReference); UserReference result = this.converter.convertToType(null, "space.userPage"); assertEquals(userReference, result); }
@Override protected UserReference convertToType(Type targetType, Object value) { if (value == null) { return null; } return this.userReferenceResolver.resolve(value.toString()); }
UserReferenceConverter extends AbstractConverter<UserReference> { @Override protected UserReference convertToType(Type targetType, Object value) { if (value == null) { return null; } return this.userReferenceResolver.resolve(value.toString()); } }
UserReferenceConverter extends AbstractConverter<UserReference> { @Override protected UserReference convertToType(Type targetType, Object value) { if (value == null) { return null; } return this.userReferenceResolver.resolve(value.toString()); }  }
UserReferenceConverter extends AbstractConverter<UserReference> { @Override protected UserReference convertToType(Type targetType, Object value) { if (value == null) { return null; } return this.userReferenceResolver.resolve(value.toString()); }   }
UserReferenceConverter extends AbstractConverter<UserReference> { @Override protected UserReference convertToType(Type targetType, Object value) { if (value == null) { return null; } return this.userReferenceResolver.resolve(value.toString()); }    }