Hello Google App Group!

Long time reader, first time poster.

I would like to insure that my JAVA application is "Gracefully
Degrading During Scheduled Maintenance".

It would be ideal if I could capture this failure in my application's
unit tests.


                PersistenceManager pm = PMF.get().getPersistenceManager();
                try
                {
                        pm.makePersistent(this);
                } catch
(com.google.apphosting.api.ApiProxy.CapabilityDisabledException e) {
                        // Data store is for maintenance read-only, degrade 
gracefully

                       // ****************
                       // I WANT TO TRIGGER THIS EXCEPTION for my unit
testing
                       // ****************
                }
                finally {
                        pm.close();
                }

I have poked around in the LocalServiceTestHelper class and the
LocalDatastoreServiceTestConfig class but I do not see a way of easily
triggering this exception.

Does anyone know how to trigger a CapabilityDisabledException  (Data
Store is in read only mode for Maintenance) using the handy and dandy
LocalServiceTestHelper?

Any insights into this would be greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to