Java – JUnit integration testing across GWT and appengine devmodes using resteasy

I want to run a test. My GWT code sends a request to my app engine server and waits for a response My server uses resteasy to set the request path My client uses some autobean magic, which uses GWT Create (), so this test must be a gwttestcase

What do I need to do to set up a complete simulation of the App Engine Development Pattern for testing? Docs mentioned how to set up each service that App Engine depends on, but I want to improve the whole thing

Solution

Because I am not familiar with GWT testcase, I don't fully understand what you need here It's not a simple thing:

public class LocalDatastoreTest 
{
    private final LocalServiceTestHelper helper =
        new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig(),new LocalUserServiceTestConfig(),new LocalTaskQueueTestConfig(),new LocalMemcacheServiceTestConfig(),new LocalAppIdentityServiceTestConfig() // etc..
                                  );

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

You can add more test configurations to the assistant as needed. Is it enough to set up a complete simulation of the App Engine development mode? Can you provide more details you need?

(this should count as a comment, but the code example I'm trying to write is too large to comment)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>