Examples of configureDefault()


Examples of org.apache.ivy.Ivy.configureDefault()

    private ArtifactOrigin origin;

    protected void setUp() throws Exception {
        File f = File.createTempFile("ivycache", ".dir");
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        IvySettings settings = ivy.getSettings();
        f.delete(); // we want to use the file as a directory, so we delete the file itself
        cacheManager = new DefaultRepositoryCacheManager();
        cacheManager.setSettings(settings);
        cacheManager.setBasedir(f);
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

import org.apache.ivy.plugins.resolver.IvyRepResolver;

public class ConfigureTest extends TestCase {
    public void testDefault() throws ParseException, IOException {
        Ivy ivy = new Ivy();
        ivy.configureDefault();

        IvySettings settings = ivy.getSettings();
        assertNotNull(settings.getDefaultResolver());

        DependencyResolver publicResolver = settings.getResolver("public");
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

public class IvySettingsTest extends TestCase {

    public void testChangeDefaultResolver() throws ParseException, IOException {
        Ivy ivy = new Ivy();
        ivy.configureDefault();

        IvySettings settings = ivy.getSettings();
        DependencyResolver defaultResolver = settings.getDefaultResolver();

        assertNotNull(defaultResolver);
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

        assertEquals("resolver changed successfully", "public", newDefault.getName());
    }

    public void testVariables() throws Exception {
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        IvySettings settings = ivy.getSettings();

        // test set
        assertNull(settings.getVariable("foo"));
        settings.setVariable("foo", "bar", false, null, null);
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

import org.apache.ivy.plugins.resolver.IvyRepResolver;

public class ConfigureTest extends TestCase {
    public void testDefault() throws ParseException, IOException {
        Ivy ivy = new Ivy();
        ivy.configureDefault();

        IvySettings settings = ivy.getSettings();
        assertNotNull(settings.getDefaultResolver());

        DependencyResolver publicResolver = settings.getResolver("public");
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

    private ArtifactOrigin origin;

    protected void setUp() throws Exception {
        File f = File.createTempFile("ivycache", ".dir");
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        IvySettings settings = ivy.getSettings();
        f.delete(); // we want to use the file as a directory, so we delete the file itself
        cacheManager = new CacheManager(settings, f);

        artifact = createArtifact("org", "module", "rev", "name", "type", "ext");
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

       
    }

    public void testSort() throws Exception {
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[2], md[1], md[3]}));
        assertSorted(md, ivy.sortModuleDescriptors(toSort));
        toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[1], md[2], md[3]}));
        assertSorted(md, ivy.sortModuleDescriptors(toSort));
        toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[0], md[2], md[3]}));
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

    // sorter does not throw circular dependency, circular dependencies are handled at resolve time only
    // because circular dependencies are more complicated to evaluate than just a callstack comparison
   
    public void testCircularDependency() throws Exception {
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        md[0].addDependency(new DefaultDependencyDescriptor(mrid4, false));
        toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[2], md[1], md[3]}));
        // the sorted array may begin by any of the modules since there is a circular dependency
        // in this case, the result is the following
        DefaultModuleDescriptor[] sorted = new DefaultModuleDescriptor[] {
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

        assertSorted(sorted, ivy.sortModuleDescriptors(toSort));
    }
   
    public void testCircularDependency2() throws Exception {
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        md[1].addDependency(new DefaultDependencyDescriptor(mrid3, false));
        toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[2], md[1], md[3]}));
        assertSorted(md, ivy.sortModuleDescriptors(toSort));
    }
}
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

import org.apache.ivy.plugins.resolver.IvyRepResolver;

public class ConfigureTest extends TestCase {
    public void testDefault() throws ParseException, IOException {
        Ivy ivy = new Ivy();
        ivy.configureDefault();
       
        IvySettings settings = ivy.getSettings();
    assertNotNull(settings.getDefaultResolver());
   
        DependencyResolver publicResolver = settings.getResolver("public");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.