mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 17:28:25 +02:00
Typo in comment
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=122449880
This commit is contained in:
parent
13f5106070
commit
86f3287761
18 changed files with 84 additions and 107 deletions
|
@ -15,6 +15,7 @@
|
|||
package google.registry.testing;
|
||||
|
||||
import static com.google.common.truth.Truth.assert_;
|
||||
import static google.registry.testing.DatastoreHelper.persistSimpleResources;
|
||||
import static google.registry.util.ResourceUtils.readResourceUtf8;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static org.json.XML.toJSONObject;
|
||||
|
@ -55,7 +56,6 @@ import org.junit.runners.model.Statement;
|
|||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
@ -401,10 +401,8 @@ public final class AppEngineRule extends ExternalResource {
|
|||
|
||||
/** Create some fake registrars. */
|
||||
public static void loadInitialData() {
|
||||
DatastoreHelper.persistSimpleGlobalResources(Arrays.asList(
|
||||
makeRegistrar1(),
|
||||
makeRegistrarContact1(),
|
||||
makeRegistrar2(),
|
||||
makeRegistrarContact2()));
|
||||
persistSimpleResources(
|
||||
ImmutableList.of(
|
||||
makeRegistrar1(), makeRegistrarContact1(), makeRegistrar2(), makeRegistrarContact2()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -842,24 +842,6 @@ public class DatastoreHelper {
|
|||
return persistSimpleResources(ImmutableList.of(resource)).get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Persists a single Objectify resource in the global namespace, without adjusting foreign
|
||||
* resources or keys.
|
||||
*/
|
||||
public static <R> R persistSimpleGlobalResource(final R resource) {
|
||||
return persistSimpleResources(ImmutableList.of(resource)).get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like persistResource but for multiple entities, with no helper for saving
|
||||
* ForeignKeyedEppResources. All entities are persisted into the global namespace.
|
||||
*
|
||||
* @see "http://docs.objectify-appengine.googlecode.com/git/apidocs/com/googlecode/objectify/cmd/Loader.htmls#entities(java.lang.Iterable)"
|
||||
*/
|
||||
public static <R> ImmutableList<R> persistSimpleGlobalResources(Iterable<R> resources) {
|
||||
return persistSimpleResources(resources);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like persistResource but for multiple entities, with no helper for saving
|
||||
* ForeignKeyedEppResources.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue