Skip to content

Unit tests use old style of test setup not new LocalServiceTestHelper described in docs #211

@GoogleCodeExporter

Description

@GoogleCodeExporter

What version of the product are you using? On what operating system?
version 16

Please provide any additional information below.

All the unit and integration tests use the old style:

ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());
        ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")) {
        });
        ApiProxyLocalImpl proxy = (ApiProxyLocalImpl) ApiProxy.getDelegate();
        // Local datastore should not save test objects to file
        proxy.setProperty(LocalDatastoreService.NO_STORAGE_PROPERTY, Boolean.TRUE.toString());

to setup app engine services

but the app engine docs now refer to a simpler. cleaner way:

 private final LocalServiceTestHelper helper =
        new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());

    @Before
    public void setUp() {
        helper.setUp();
    }



Original issue reported on code.google.com by [email protected] on 15 Jun 2010 at 8:34

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions