Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Rule
- pubilc final AppEngineRule appengineRule = AppEngineRule.builder()
- .withAll() // all will setup all the appengine services like Datastore, Queue, Memcache etc
- .build();
- @Rule
- pubilc final AppEngineRule appengineRule = AppEngineRule.builder()
- .withTypes(Datastore, Memcache, Queue) //or configure using selective service
- .build();
- // or go for complex one
- @Rule
- public final AppEngineRule appEngineRule = AppEngineRule.builder()
- // datastore & generate auto indexes xml file
- .withDatastore(datastoreConfig().setNoIndexAutoGen(false))
- // with memecache
- .withMemcache()
- // queue with specific queue.xml file
- .withQueue("{PROJECT_DIR}/src/main/webapp/WEB-INF/queue.xml")
- // UserService with an admin user loggedIn
- .withUserService(UserInfo.createAdmin("admin@testing.com", "admin_123"))
- // with url fetch service
- .withUrlFetcher()
- .build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement