test/mavenparsertest.py
def testDependencyManagement (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')
    
    mvn1.merge (mvn2)

    mvn1.resolve ()

    self.assertEquals (
      [x.id for x in mvn1.deps.getFlattenCoords () if x.scope == 'provided'],
      [
        u'org.osgi:org.osgi.core:4.2.0'
      ]
    )

    self.assertEquals (
      [x.id for x in mvn1.deps.getFlattenCoords () if x.scope == 'compile'],
      [
        u'xml-resolver:xml-resolver:1.2',
        u'asm:asm:3.3.1',
        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-ws-addr:3.0.2'
      ]
    )

    self.assertEquals (
      [x.id for x in mvn1.deps.getFlattenCoords () if x.scope == 'test'],
      [
        u'junit:junit:4.11',
        u'org.easymock:easymock:3.1',
        u'org.apache.cxf:cxf-testutils:3.0.2',
        u'org.apache.cxf:cxf-rt-transports-http:3.0.2',
        u'org.apache.cxf:cxf-rt-ws-policy:3.0.2',
        u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.7.1',
        u'org.slf4j:jcl-over-slf4j:1.7.7',
        u'org.slf4j:slf4j-jdk14:1.7.7',
      ]
    )
 Test complex apache CXF module previously downloaded
    
Test complex apache CXF module previously downloaded
Test complex apache CXF module previously downloaded
def testDependencyManagement (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')
    mvn1.merge (mvn2)
    mvn1.resolve ()
    self.assertEquals (
      [x.id for x in mvn1.deps.getFlattenCoords () if x.scope == 'provided'],
      [
        u'org.osgi:org.osgi.core:4.2.0'
      ]
    )
    self.assertEquals (
      [x.id for x in mvn1.deps.getFlattenCoords () if x.scope == 'compile'],
      [
        u'xml-resolver:xml-resolver:1.2',
        u'asm:asm:3.3.1',
        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-ws-addr:3.0.2'
      ]
    )
    self.assertEquals (
      [x.id for x in mvn1.deps.getFlattenCoords () if x.scope == 'test'],
      [
        u'junit:junit:4.11',
        u'org.easymock:easymock:3.1',
        u'org.apache.cxf:cxf-testutils:3.0.2',
        u'org.apache.cxf:cxf-rt-transports-http:3.0.2',
        u'org.apache.cxf:cxf-rt-ws-policy:3.0.2',
        u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.7.1',
        u'org.slf4j:jcl-over-slf4j:1.7.7',
        u'org.slf4j:slf4j-jdk14:1.7.7',
      ]
    )
def testDependencyManagement ( 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' ) mvn1 . merge ( mvn2 ) mvn1 . resolve ( ) self . assertEquals ( [ x . id for x in mvn1 . deps . getFlattenCoords ( ) if x . scope == 'provided' ] , [ u'org.osgi:org.osgi.core:4.2.0' ] ) self . assertEquals ( [ x . id for x in mvn1 . deps . getFlattenCoords ( ) if x . scope == 'compile' ] , [ u'xml-resolver:xml-resolver:1.2' , u'asm:asm:3.3.1' , 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-ws-addr:3.0.2' ] ) self . assertEquals ( [ x . id for x in mvn1 . deps . getFlattenCoords ( ) if x . scope == 'test' ] , [ u'junit:junit:4.11' , u'org.easymock:easymock:3.1' , u'org.apache.cxf:cxf-testutils:3.0.2' , u'org.apache.cxf:cxf-rt-transports-http:3.0.2' , u'org.apache.cxf:cxf-rt-ws-policy:3.0.2' , u'org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.7.1' , u'org.slf4j:jcl-over-slf4j:1.7.7' , u'org.slf4j:slf4j-jdk14:1.7.7' , ] )
Test complex apache CXF module previously downloaded
Test complex apache CXF module previously downloaded
""" Test complex apache CXF module previously downloaded
    """
self