[jboss-dev-forums] [Design of JBossXB] - JBossXB does not assign schema defined attribute defaults

thomas.diesler@jboss.com do-not-reply at jboss.com
Wed Jul 1 04:25:41 EDT 2009


  | [tdiesler at tdvaio blueprint]$ mvn -Dtest=BasicRootParserTestCase install
  | 
  | -------------------------------------------------------------------------------
  | Test set: org.jboss.test.osgi.blueprint.parser.BasicRootParserTestCase
  | -------------------------------------------------------------------------------
  | Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.001 sec <<< FAILURE!
  | testBlueprintDefaultAttributes(org.jboss.test.osgi.blueprint.parser.BasicRootParserTestCase)  Time elapsed: 0.935 sec  <<< FAILURE!
  | java.lang.AssertionError: default-lazy-init: FALSE expected:<false> but was:<null>
  | 	at org.junit.Assert.fail(Assert.java:92)
  | 	at org.junit.Assert.failNotEquals(Assert.java:689)
  | 	at org.junit.Assert.assertEquals(Assert.java:127)
  | 	at org.jboss.test.osgi.blueprint.parser.BasicRootParserTestCase.testBlueprintDefaultAttributes(BasicRootParserTestCase.java:56)
  | 

on TBlueprint I have an attribute declaration like this


  |    @XmlAttribute(name = "default-lazy-init")
  |    public Boolean isDefaultLazyInit()
  |    {
  |       return defaultLazyInit;
  |    }
  | 

which should probably not even be necessary.

This works with the SchemaBindingParser, which gets the binding annotation from the schema.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241077#4241077

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241077



More information about the jboss-dev-forums mailing list