Examples of assertLogContains()


Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ResolveReport report = ivy.resolve(new File(
            "test/repositories/1/org1/mod1.1/ivys/ivy-1.0.xml").toURL(),
            getResolveOptions(ivy, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger.assertLogContains("mod1.1");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy);

        // then we load another instance, and use it for another resolution
        MockMessageLogger mockLogger2 = new MockMessageLogger();
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ivy2.configure(new File("test/repositories/norev/ivysettings.xml").toURL());
        report = ivy2.resolve(new File("test/repositories/norev/ivy.xml").toURL(),
            getResolveOptions(ivy2, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger2.assertLogContains("norev/ivysettings.xml");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy2);
       
        // finally we reuse the first instance to make another resolution
        report = ivy.resolve(new File(
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ResolveReport report = ivy.resolve(ResolveTest.class.getResource("ivy-extra-att3.xml"),
            getResolveOptions(ivy.getSettings(), new String[] {"*"}).setValidate(false));
       
        assertTrue(report.hasError());
        // should report error about missing extra attribute in dependency module descriptor
        mockLogger.assertLogContains("expected='task2' found='null'");
    }

    public void testExtraAttributes4() throws Exception {
        // second test case for IVY-745: now we disable consistency checking, everything should work fine
        Ivy ivy = new Ivy();
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ResolveReport report = ivy.resolve(new File(
            "test/repositories/1/org1/mod1.1/ivys/ivy-1.0.xml").toURL(),
            getResolveOptions(ivy, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger.assertLogContains("mod1.1");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy);

        // then we load another instance, and use it for another resolution
        MockMessageLogger mockLogger2 = new MockMessageLogger();
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ivy2.configure(new File("test/repositories/norev/ivysettings.xml").toURL());
        report = ivy2.resolve(new File("test/repositories/norev/ivy.xml").toURL(),
            getResolveOptions(ivy2, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger2.assertLogContains("norev/ivysettings.xml");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy2);
       
        // finally we reuse the first instance to make another resolution
        report = ivy.resolve(new File(
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ResolveReport report = ivy.resolve(ResolveTest.class.getResource("ivy-extra-att3.xml"),
            getResolveOptions(ivy.getSettings(), new String[] {"*"}).setValidate(false));
       
        assertTrue(report.hasError());
        // should report error about missing extra attribute in dependency module descriptor
        mockLogger.assertLogContains("expected='task2' found='null'");
    }

    public void testExtraAttributes4() throws Exception {
        // second test case for IVY-745: now we disable consistency checking, everything should work fine
        Ivy ivy = new Ivy();
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ResolveReport report = ivy.resolve(new File(
            "test/repositories/1/org1/mod1.1/ivys/ivy-1.0.xml").toURL(),
            getResolveOptions(ivy, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger.assertLogContains("mod1.1");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy);

        // then we load another instance, and use it for another resolution
        MockMessageLogger mockLogger2 = new MockMessageLogger();
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ivy2.configure(new File("test/repositories/norev/ivysettings.xml").toURL());
        report = ivy2.resolve(new File("test/repositories/norev/ivy.xml").toURL(),
            getResolveOptions(ivy2, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger2.assertLogContains("norev/ivysettings.xml");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy2);
       
        // finally we reuse the first instance to make another resolution
        report = ivy.resolve(new File(
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ResolveReport report = ivy.resolve(new File(
            "test/repositories/1/org1/mod1.1/ivys/ivy-1.0.xml").toURL(),
            getResolveOptions(ivy, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger.assertLogContains("mod1.1");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy);

        // then we load another instance, and use it for another resolution
        MockMessageLogger mockLogger2 = new MockMessageLogger();
View Full Code Here

Examples of org.apache.ivy.util.MockMessageLogger.assertLogContains()

        ivy2.configure(new File("test/repositories/norev/ivysettings.xml").toURL());
        report = ivy2.resolve(new File("test/repositories/norev/ivy.xml").toURL(),
            getResolveOptions(ivy2, new String[] {"*"}));
        assertNotNull(report);
        assertFalse(report.hasError());
        mockLogger2.assertLogContains("norev/ivysettings.xml");
        assertFalse("IvyContext should be cleared and return a default Ivy instance",
            IvyContext.getContext().getIvy() == ivy2);
       
        // finally we reuse the first instance to make another resolution
        report = ivy.resolve(new File(
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.