google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

I18 message hierarchy is not supported. #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create class extending Messages (ParentMessage extends Messages)
2. Create second class extending previous one. (ChildMessage extends 
ParentMessage)
3. Do not create any annotations, just according properties files.

What is the expected output? What do you see instead?

com.octo.gwt.test.exceptions.GwtTestI18NException: Unable to find a Locale 
specific resource file to bind with i18n interface 'ParentMessage' and there is 
no @DefaultXXXValue annotation on 'genericMessage' called method
    at com.octo.gwt.test.internal.utils.i18n.LocalizableResourcesInvocationHandler.invoke(LocalizableResourcesInvocationHandler.java:49)
    at $Proxy11.genericMessage(Unknown Source)
    at TestInheritanceMessages.testMessage(TestInheritanceMessages.java:16)

What version of the product are you using? On what operating system?
0.28-SNAPSHOTS

Please provide any additional information below.

See attachment with example test case.

Original issue reported on code.google.com by Andrzej....@gmail.com on 20 Apr 2011 at 12:43

Attachments:

GoogleCodeExporter commented 9 years ago
Test case:
        @Test
    public void testMessage(){
        ParentMessage parent = GWT.create(ParentMessage.class);
        ChildMessage child = GWT.create(ChildMessage.class);

        String message1 = parent.genericMessage();
        String message2 = child.genericMessage();
        Assert.assertEquals(message1, message2);
    }

Original comment by Andrzej....@gmail.com on 20 Apr 2011 at 12:46

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 20 Apr 2011 at 12:51

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 20 Apr 2011 at 6:42

GoogleCodeExporter commented 9 years ago
I've fixed this, please give it a try to confirm everything is working fine now.

I've deployed a new 0.28-SNAPSHOT version

Original comment by gael.laz...@gmail.com on 21 Apr 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Try to create hierarchy with more children (grandparent->parent->child). See 
attachment. The test fails.

Original comment by Andrzej....@gmail.com on 21 Apr 2011 at 2:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 22 Apr 2011 at 12:49

GoogleCodeExporter commented 9 years ago
It should be ok now on trunk, can you give it a try once again ?

Tank you very much for your feedback.

Original comment by gael.laz...@gmail.com on 23 Apr 2011 at 3:49

GoogleCodeExporter commented 9 years ago
You welcome,
My test past.

Original comment by Andrzej....@gmail.com on 26 Apr 2011 at 8:55

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 9 Jun 2011 at 3:31