mirror of
https://github.com/google/nomulus.git
synced 2025-06-04 19:47:26 +02:00
Run automatic Java 8 conversion over codebase
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171174380
This commit is contained in:
parent
44df5da771
commit
5edb7935ed
190 changed files with 2312 additions and 3096 deletions
|
@ -18,7 +18,6 @@ import static com.google.common.truth.Truth.assertThat;
|
|||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.FluentIterable;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
@ -88,14 +87,7 @@ public class ContactResourceToXjcConverterTest {
|
|||
|
||||
// o One or more <status> elements that describe the status of the
|
||||
// contact object.
|
||||
assertThat(
|
||||
FluentIterable
|
||||
.from(bean.getStatuses())
|
||||
.transform(new Function<XjcContactStatusType, XjcContactStatusValueType>() {
|
||||
@Override
|
||||
public XjcContactStatusValueType apply(XjcContactStatusType status) {
|
||||
return status.getS();
|
||||
}}))
|
||||
assertThat(FluentIterable.from(bean.getStatuses()).transform(XjcContactStatusType::getS))
|
||||
.containsExactly(
|
||||
XjcContactStatusValueType.CLIENT_DELETE_PROHIBITED,
|
||||
XjcContactStatusValueType.SERVER_UPDATE_PROHIBITED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue