Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.error()


    public void first_entry_wins_on_conflict()
    {
        Log log = mockLog();
        Runnable r = mockRunnable();

        log
                .error("Contribution FRED-CONFLICT (for type java.lang.String) conflicts with existing contribution FRED and has been ignored.");

        replay();

        AliasContribution[] contributions =
View Full Code Here


        Page page = mockPage();
        Log log = mockLog();

        train_detached(page, true);

        log.error(contains("is dirty, and will be discarded"));

        // The fact that we don't ask the page for its name is our clue that it is not being cached.

        replay();
View Full Code Here

    {
        Log log = mockLog();
        ExtraServiceMethod next = newMock(ExtraServiceMethod.class);
        Serializable filter = newMock(Serializable.class);

        log
                .error(
                        "Method void extraServiceMethod() has no match in filter interface java.io.Serializable.",
                        null);

        replay();
View Full Code Here

    {
        Log log = mockLog();
        Serializable next = newMock(Serializable.class);
        ExtraFilterMethod filter = newMock(ExtraFilterMethod.class);

        log
                .error(
                        "Method void extraFilterMethod() of filter interface "
                                + "org.apache.tapestry.ioc.internal.services.ExtraFilterMethod does not have a matching method "
                                + "in java.io.Serializable.",
                        null);
View Full Code Here

        l1.registryDidShutdown();
        l2.registryDidShutdown();
        setThrowable(t);

        log.error(contains("Shutdown failure."), same(t));

        l3.registryDidShutdown();

        replay();
View Full Code Here

        train_getEmbeddedIds(model, "foo", "bar", "baz");

        train_getComponentIds(template, "baz", "biff");

        log.error(ServicesMessages.embeddedComponentsNotInTemplate(
                Arrays.asList("foo", "bar"),
                PAGE_CLASS_NAME));

        train_getTokens(template);
View Full Code Here

        train_getComponentType(emodel, "Barney");

        train_getMixinClassNames(emodel);

        log.error(ServicesMessages.compTypeConflict("foo", "Fred", "Barney"));

        train_getComponentClassName(emodel, "foo.components.Barney");

        train_newComponentElement(
                elementFactory,
View Full Code Here

    @Test
    public void non_private_fields_log_an_error() throws Exception
    {
        Log log = mockLog();

        log.error(ServicesMessages.nonPrivateFields(VisibilityBean.class.getName(), Arrays.asList(
                "_$myPackagePrivate",
                "_$myProtected",
                "_$myPublic")));

        replay();
View Full Code Here

        if (initialized) {
            Log log = logFactory.getInstance(Project.class);
            if (event.getException() == null) {
                log.info("Build finished.");
            } else {
                log.error("Build finished with error.", event.getException());
            }
        }
    }

    /**
 
View Full Code Here

            String targetName = event.getTarget().getName();
            Log log = logFactory.getInstance(Target.class);
            if (event.getException() == null) {
                log.info("Target \"" + targetName + "\" finished.");
            } else {
                log.error("Target \"" + targetName
                        + "\" finished with error.", event.getException());
            }
        }
    }
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.