Created
June 6, 2010 02:37
-
-
Save zahardzhan/427220 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
Great, that helped a lot. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. Watch it here https://github.com/zahardzhan/google-appengine also
(defn local-service-test-helper [& configs](new LocalServiceTestHelper %28into-array LocalServiceTestConfig configs%29))