Forgot source code: here it is

       @Test
        public void testInvalidQueue() {
                Queue queue = QueueFactory.getQueue("foo");
                try {
                        queue.add();
                        fail();
                } catch (IllegalStateException e) {
                        if (Util.runningOnGaej() == true) {
                                assertEquals("The specified queue is unknown : 
Unknown",
e.getMessage());
                        } else {
                                assertEquals("The specified queue is unknown : 
foo",
e.getMessage());
                        }
                }
        }

On Nov 11, 6:17 am, Didier Durand <durand.did...@gmail.com> wrote:
> Hi,
>
> The queue service as use in junit test below behaves differently
> between Dev and Prod on Gaej: the exception message is slightly
> different.
>
> On gaej, the message doesn't give the queue name used but "Unknown":
> see if/then/code. It's less precise so harder for debugging on
> production. I would appreciate if the prod env also gave the name of
> the wrong queue.
>
> a) Can somebody run my code on its side and that he sees same
> behavior ?
>
> b) Shoud I open an issue for this ?
>
> regards
> didier

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to