test/mavenparsertest.py
def testComplexApacheCxf (self):
    """ Test complex apache CXF module previously downloaded
    """ 
    mvn1 = mavenparser.parseFile ('data/org.apache.cxf/cxf-rt-frontend-jaxws-3.0.2.pom')
    mvn2 = mavenparser.parseFile ('data/org.apache.cxf/cxf-parent-3.0.2.pom')
    mvn3 = mavenparser.parseFile ('data/org.apache.cxf/cxf-3.0.2.pom')

    mvn1.merge (mvn2)
    mvn1.merge (mvn3)

    # after the merge, without property expansion
    self.assertEquals (
      mvn1.deps.getFlattenCoordIds (),
      [
        u'org.osgi:org.osgi.core:',
        u'junit:junit:',
        u'org.easymock:easymock:',
        u'org.apache.cxf:cxf-testutils:${project.version}',
        u'xml-resolver:xml-resolver:',
        u'${cxf.asm.groupId}:${cxf.asm.artifactId}:',
        u'org.apache.cxf:cxf-core:${project.version}',
        u'org.apache.cxf:cxf-rt-bindings-soap:${project.version}',
        u'org.apache.cxf:cxf-rt-bindings-xml:${project.version}',
        u'org.apache.cxf:cxf-rt-frontend-simple:${project.version}',
        u'org.apache.cxf:cxf-rt-transports-http:${project.version}',
        u'org.apache.cxf:cxf-rt-ws-addr:${project.version}',
        u'org.apache.cxf:cxf-rt-ws-policy:${project.version}',
        u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:',
        u'org.slf4j:jcl-over-slf4j:',
        u'org.slf4j:slf4j-jdk14:'
      ]
    )    

    mvn1.expand()
    
    self.assertEquals (
      mvn1.deps.getFlattenCoordIds (),
      [
        u'org.osgi:org.osgi.core:',
        u'junit:junit:',
        u'org.easymock:easymock:',
        u'org.apache.cxf:cxf-testutils:3.0.2',
        u'xml-resolver:xml-resolver:',
        u'asm:asm:',
        u'org.apache.cxf:cxf-core:3.0.2',
        u'org.apache.cxf:cxf-rt-bindings-soap:3.0.2',
        u'org.apache.cxf:cxf-rt-bindings-xml:3.0.2',
        u'org.apache.cxf:cxf-rt-frontend-simple:3.0.2',
        u'org.apache.cxf:cxf-rt-transports-http:3.0.2',
        u'org.apache.cxf:cxf-rt-ws-addr:3.0.2',
        u'org.apache.cxf:cxf-rt-ws-policy:3.0.2',
        u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:',
        u'org.slf4j:jcl-over-slf4j:',
        u'org.slf4j:slf4j-jdk14:'
      ]
    )
 Test complex apache CXF module previously downloaded
    
Test complex apache CXF module previously downloaded
Test complex apache CXF module previously downloaded
def testComplexApacheCxf (self):
    mvn1 = mavenparser.parseFile ('data/org.apache.cxf/cxf-rt-frontend-jaxws-3.0.2.pom')
    mvn2 = mavenparser.parseFile ('data/org.apache.cxf/cxf-parent-3.0.2.pom')
    mvn3 = mavenparser.parseFile ('data/org.apache.cxf/cxf-3.0.2.pom')
    mvn1.merge (mvn2)
    mvn1.merge (mvn3)
    self.assertEquals (
      mvn1.deps.getFlattenCoordIds (),
      [
        u'org.osgi:org.osgi.core:',
        u'junit:junit:',
        u'org.easymock:easymock:',
        u'org.apache.cxf:cxf-testutils:${project.version}',
        u'xml-resolver:xml-resolver:',
        u'${cxf.asm.groupId}:${cxf.asm.artifactId}:',
        u'org.apache.cxf:cxf-core:${project.version}',
        u'org.apache.cxf:cxf-rt-bindings-soap:${project.version}',
        u'org.apache.cxf:cxf-rt-bindings-xml:${project.version}',
        u'org.apache.cxf:cxf-rt-frontend-simple:${project.version}',
        u'org.apache.cxf:cxf-rt-transports-http:${project.version}',
        u'org.apache.cxf:cxf-rt-ws-addr:${project.version}',
        u'org.apache.cxf:cxf-rt-ws-policy:${project.version}',
        u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:',
        u'org.slf4j:jcl-over-slf4j:',
        u'org.slf4j:slf4j-jdk14:'
      ]
    )    
    mvn1.expand()
    self.assertEquals (
      mvn1.deps.getFlattenCoordIds (),
      [
        u'org.osgi:org.osgi.core:',
        u'junit:junit:',
        u'org.easymock:easymock:',
        u'org.apache.cxf:cxf-testutils:3.0.2',
        u'xml-resolver:xml-resolver:',
        u'asm:asm:',
        u'org.apache.cxf:cxf-core:3.0.2',
        u'org.apache.cxf:cxf-rt-bindings-soap:3.0.2',
        u'org.apache.cxf:cxf-rt-bindings-xml:3.0.2',
        u'org.apache.cxf:cxf-rt-frontend-simple:3.0.2',
        u'org.apache.cxf:cxf-rt-transports-http:3.0.2',
        u'org.apache.cxf:cxf-rt-ws-addr:3.0.2',
        u'org.apache.cxf:cxf-rt-ws-policy:3.0.2',
        u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:',
        u'org.slf4j:jcl-over-slf4j:',
        u'org.slf4j:slf4j-jdk14:'
      ]
    )
def testComplexApacheCxf ( self ) : mvn1 = mavenparser . parseFile ( 'data/org.apache.cxf/cxf-rt-frontend-jaxws-3.0.2.pom' ) mvn2 = mavenparser . parseFile ( 'data/org.apache.cxf/cxf-parent-3.0.2.pom' ) mvn3 = mavenparser . parseFile ( 'data/org.apache.cxf/cxf-3.0.2.pom' ) mvn1 . merge ( mvn2 ) mvn1 . merge ( mvn3 ) self . assertEquals ( mvn1 . deps . getFlattenCoordIds ( ) , [ u'org.osgi:org.osgi.core:' , u'junit:junit:' , u'org.easymock:easymock:' , u'org.apache.cxf:cxf-testutils:${project.version}' , u'xml-resolver:xml-resolver:' , u'${cxf.asm.groupId}:${cxf.asm.artifactId}:' , u'org.apache.cxf:cxf-core:${project.version}' , u'org.apache.cxf:cxf-rt-bindings-soap:${project.version}' , u'org.apache.cxf:cxf-rt-bindings-xml:${project.version}' , u'org.apache.cxf:cxf-rt-frontend-simple:${project.version}' , u'org.apache.cxf:cxf-rt-transports-http:${project.version}' , u'org.apache.cxf:cxf-rt-ws-addr:${project.version}' , u'org.apache.cxf:cxf-rt-ws-policy:${project.version}' , u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:' , u'org.slf4j:jcl-over-slf4j:' , u'org.slf4j:slf4j-jdk14:' ] ) mvn1 . expand ( ) self . assertEquals ( mvn1 . deps . getFlattenCoordIds ( ) , [ u'org.osgi:org.osgi.core:' , u'junit:junit:' , u'org.easymock:easymock:' , u'org.apache.cxf:cxf-testutils:3.0.2' , u'xml-resolver:xml-resolver:' , u'asm:asm:' , u'org.apache.cxf:cxf-core:3.0.2' , u'org.apache.cxf:cxf-rt-bindings-soap:3.0.2' , u'org.apache.cxf:cxf-rt-bindings-xml:3.0.2' , u'org.apache.cxf:cxf-rt-frontend-simple:3.0.2' , u'org.apache.cxf:cxf-rt-transports-http:3.0.2' , u'org.apache.cxf:cxf-rt-ws-addr:3.0.2' , u'org.apache.cxf:cxf-rt-ws-policy:3.0.2' , u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:' , u'org.slf4j:jcl-over-slf4j:' , u'org.slf4j:slf4j-jdk14:' ] )
Test complex apache CXF module previously downloaded
Test complex apache CXF module previously downloaded
""" Test complex apache CXF module previously downloaded
    """ # after the merge, without property expansion
self