Skip to content

Instantly share code, notes, and snippets.

@zahardzhan
Created June 6, 2010 02:37
Show Gist options
  • Save zahardzhan/427220 to your computer and use it in GitHub Desktop.
Save zahardzhan/427220 to your computer and use it in GitHub Desktop.
(import 'com.google.appengine.tools.development.testing.LocalUserServiceTestConfig)
(import 'com.google.appengine.tools.development.testing.LocalServiceTestHelper)
;; EVAL:
(new LocalServiceTestHelper (new LocalUserServiceTestConfig))
> com.google.appengine.tools.development.testing.LocalUserServiceTestConfig
cannot be cast to
[Lcom.google.appengine.tools.development.testing.LocalServiceTestConfig;
[Thrown class java.lang.ClassCastException]
;; In Google App Engine SDK:
private final LocalServiceTestHelper helper =
new LocalServiceTestHelper(new LocalUserServiceTestConfig())
.setEnvIsAdmin(true).setEnvIsLoggedIn(true)
@lhanson
Copy link

lhanson commented Dec 23, 2010

I'm getting the same exception currently - did you find a solution?

@zahardzhan
Copy link
Author

Yes. Watch it here https://github.com/zahardzhan/google-appengine also
(defn local-service-test-helper [& configs](new LocalServiceTestHelper %28into-array LocalServiceTestConfig configs%29))

@lhanson
Copy link

lhanson commented Dec 30, 2010

Great, that helped a lot. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment