test/mavendepstest.py
def testDepsResolveExclusionsNoVersion (self):
    return # FIXME!
    """ Test that we can get dependencies without exclusions
    """
    depsA = MavenDeps('A:A')
    depsB = MavenDep ('B:B')
    depsC = MavenDep ('C:C')
    depsD = MavenDep ('D:D')
    depsE = MavenDep ('E:E')

    # A->B->C
    # |  |
    # |  +->D
    # |  |
    # |  +->E
    # |
    # +->C
    depsB.add (depsC)
    depsB.add (depsD)
    depsB.add (depsE)
    depsA.add (depsB)
    depsA.add (depsC)

    depsA.root.addCoordToExclude ('D:D')
    depsB.addCoordToExclude ('C:C')

    self.assertEquals (
      depsA.getFlattenCoordIds(),
      ['B:B:', 'C:C:', 'D:D:', 'E:E:', 'C:C:']
    )

    # C should be removed from the branch of A and B
    # D should be removed from the branch of B
    # 
    # A->B->E
    # |
    # +->C
    depsA.resolve()

    self.assertEquals (
      depsA.getFlattenCoordIds(),
      ['B:B:', 'E:E:', 'C:C:']
    )
    return
 Test that we can get dependencies without exclusions
    
Test that we can get dependencies without exclusions
Test that we can get dependencies without exclusions
def testDepsResolveExclusionsNoVersion (self):
    return 
    depsA = MavenDeps('A:A')
    depsB = MavenDep ('B:B')
    depsC = MavenDep ('C:C')
    depsD = MavenDep ('D:D')
    depsE = MavenDep ('E:E')
    depsB.add (depsC)
    depsB.add (depsD)
    depsB.add (depsE)
    depsA.add (depsB)
    depsA.add (depsC)
    depsA.root.addCoordToExclude ('D:D')
    depsB.addCoordToExclude ('C:C')
    self.assertEquals (
      depsA.getFlattenCoordIds(),
      ['B:B:', 'C:C:', 'D:D:', 'E:E:', 'C:C:']
    )
    A->B->E
    depsA.resolve()
    self.assertEquals (
      depsA.getFlattenCoordIds(),
      ['B:B:', 'E:E:', 'C:C:']
    )
    return
def testDepsResolveExclusionsNoVersion ( self ) : return depsA = MavenDeps ( 'A:A' ) depsB = MavenDep ( 'B:B' ) depsC = MavenDep ( 'C:C' ) depsD = MavenDep ( 'D:D' ) depsE = MavenDep ( 'E:E' ) depsB . add ( depsC ) depsB . add ( depsD ) depsB . add ( depsE ) depsA . add ( depsB ) depsA . add ( depsC ) depsA . root . addCoordToExclude ( 'D:D' ) depsB . addCoordToExclude ( 'C:C' ) self . assertEquals ( depsA . getFlattenCoordIds ( ) , [ 'B:B:' , 'C:C:' , 'D:D:' , 'E:E:' , 'C:C:' ] ) depsA . resolve ( ) self . assertEquals ( depsA . getFlattenCoordIds ( ) , [ 'B:B:' , 'E:E:' , 'C:C:' ] ) return
Test that we can get dependencies without exclusions
Test that we can get dependencies without exclusions
# FIXME! """ Test that we can get dependencies without exclusions
    """ # A->B->C # |  | # |  +->D # |  | # |  +->E # | # +->C # C should be removed from the branch of A and B # D should be removed from the branch of B #  # A->B->E # | # +->C
self