Loading a collection of entities
You can load a collection of entities by creating a Java List and using the test driver loadEntities(Iterator<Entity> entities) method.
About this task
To load entities to a server, you first create a test client project. You can create an entity collection by using any Java collection class that contains an object of the type Entity, such as List<Entity> or Set<Entity>. Submit the entity collection by passing an entity iterator to the loadEntities() method.
The TestDriver class is the main entry point for testing a solution.
If a failure occurs during the entity submission process, the process stops and a MultipleEntitySubmissionException exception is thrown. The exception includes the cause of the failure and the results for any successful entity submissions that occurred before the failure.