예제 #1
0
def test_PomReader():
    reader = Pom('org.eclipse.birt.core-2.6.2.pom')

    eq_(types.StringType, type(reader.xml.getroot().tag))
    eq_('{http://maven.apache.org/POM/4.0.0}project', reader.xml.getroot().tag)
    eq_([], reader.xml.getroot().xpath('version'))

    eq_('/project', xmlPath(reader.project))
    eq_('/project/version', xmlPath(reader.project.version))
    eq_('2.6.2', reader.project.version.text)
def test_PomReader():
    reader = Pom('org.eclipse.birt.core-2.6.2.pom')
    
    eq_(types.StringType, type(reader.xml.getroot().tag))
    eq_('{http://maven.apache.org/POM/4.0.0}project', reader.xml.getroot().tag)
    eq_([], reader.xml.getroot().xpath('version'))
    
    eq_('/project', xmlPath(reader.project))
    eq_('/project/version', xmlPath(reader.project.version))
    eq_('2.6.2', reader.project.version.text)
예제 #3
0
def test_dependencies():
    pom = Pom('org.eclipse.birt.core-2.6.2.pom')

    eq_('/project/dependencies', xmlPath(pom.project.dependencies))
    eq_(
        '[org.eclipse.core:org.eclipse.core.runtime:[3.2.0,4.0.0), org.mozilla.javascript:org.mozilla.javascript:[1.6.0,2.0.0), com.ibm.icu:com.ibm.icu:[4.2.1,5.0.0)]',
        repr(pom.dependencies()))
def test_dependencies():
    pom = Pom('org.eclipse.birt.core-2.6.2.pom')
    
    eq_('/project/dependencies', xmlPath(pom.project.dependencies))
    eq_('[org.eclipse.core:org.eclipse.core.runtime:[3.2.0,4.0.0), org.mozilla.javascript:org.mozilla.javascript:[1.6.0,2.0.0), com.ibm.icu:com.ibm.icu:[4.2.1,5.0.0)]', repr(pom.dependencies()))