Typo in comment

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122449880
This commit is contained in:
Corey Goldfeder 2016-05-16 13:09:18 -07:00 committed by Justine Tunney
parent 13f5106070
commit 86f3287761
18 changed files with 84 additions and 107 deletions

View file

@ -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()));
}
}

View file

@ -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.