- case "bar":
- assertEquals(SimpleDateFormatUtil.getRevisionFormat().parse("1970-01-01"), moduleImport.getRevision());
- assertEquals("bar-ref", moduleImport.getReference());
- assertEquals("bar-desc", moduleImport.getDescription());
- break;
- case "baz":
- assertEquals(SimpleDateFormatUtil.getRevisionFormat().parse("2010-10-10"), moduleImport.getRevision());
- assertEquals("baz-ref", moduleImport.getReference());
- assertEquals("baz-desc", moduleImport.getDescription());
- break;
- default:
- fail("Module 'foo' should only contains import of module 'bar' and 'baz'");
+ case "bar":
+ assertEquals(QName.parseRevision("1970-01-01"), moduleImport.getRevision());
+ assertEquals("bar-ref", moduleImport.getReference());
+ assertEquals("bar-desc", moduleImport.getDescription());
+ break;
+ case "baz":
+ assertEquals(QName.parseRevision("2010-10-10"), moduleImport.getRevision());
+ assertEquals("baz-ref", moduleImport.getReference());
+ assertEquals("baz-desc", moduleImport.getDescription());
+ break;
+ default:
+ fail("Module 'foo' should only contains import of module 'bar' and 'baz'");