Package org.apache.commons.logging

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


        o.add("barney", "BARNEY");
        o.add("wilma", "WILMA");

        verify();

        log.warn(UtilMessages.duplicateOrderer("fred"), null);

        replay();

        o.add("fred", "FRED2");
View Full Code Here


    @Test
    public void dependency_cycle()
    {
        Log log = mockLog();

        log.warn("Unable to add 'barney' as a dependency of 'betty', as that forms a "
                + "dependency cycle ('betty' depends on itself via 'barney'). "
                + "The dependency has been ignored.", null);

        replay();
View Full Code Here

            switch (event.getPriority()) {
                case Project.MSG_ERR:
                    log.error(event.getMessage());
                    break;
                case Project.MSG_WARN:
                    log.warn(event.getMessage());
                    break;
                case Project.MSG_INFO:
                    log.info(event.getMessage());
                    break;
                case Project.MSG_VERBOSE:
View Full Code Here

        trainForConstructor(resources, log);

        train_isDebugEnabled(log, false);

        log.warn(IOCMessages.decoratorReturnedWrongType(
                m,
                SERVICE_ID,
                fixture._interceptorToReturn,
                FieService.class), null);
View Full Code Here

        MappedConfiguration<Class, Runnable> delegate = mockMappedConfiguration();

        Class key = Integer.class;
        Runnable value = mockRunnable();

        log.warn(IOCMessages.contributionDuplicateKey(SERVICE_ID, def2, def1));

        replay();

        MappedConfiguration<Class, Runnable> wrapper = new ValidatingMappedConfigurationWrapper<Class, Runnable>(
                SERVICE_ID, def2, log, Class.class, Runnable.class, keyToContribution, delegate);
View Full Code Here

        Log log = mockLog();
        Map<Class, ContributionDef> keyToContribution = newMap();
        MappedConfiguration<Class, Runnable> delegate = mockMappedConfiguration();
        Runnable value = mockRunnable();

        log.warn(IOCMessages.contributionKeyWasNull(SERVICE_ID, def));

        replay();

        MappedConfiguration<Class, Runnable> wrapper = new ValidatingMappedConfigurationWrapper<Class, Runnable>(
                SERVICE_ID, def, log, Class.class, Runnable.class, keyToContribution, delegate);
View Full Code Here

        Log log = mockLog();
        Map<?, ContributionDef> keyToContribution = newMap();
        MappedConfiguration delegate = mockMappedConfiguration();
        Runnable value = mockRunnable();

        log.warn(IOCMessages.contributionWrongKeyType(SERVICE_ID, def, String.class, Class.class));

        replay();

        MappedConfiguration wrapper = new ValidatingMappedConfigurationWrapper(SERVICE_ID, def,
                log, Class.class, Runnable.class, keyToContribution, delegate);
View Full Code Here

        ContributionDef def = newContributionDef("contributionPlaceholder1");
        Log log = mockLog();
        Map<?, ContributionDef> keyToContribution = newMap();
        MappedConfiguration delegate = mockMappedConfiguration();

        log.warn(IOCMessages.contributionWrongValueType(
                SERVICE_ID,
                def,
                String.class,
                Runnable.class));
View Full Code Here

        ContributionDef def = newContributionDef("contributionPlaceholder1");
        Log log = mockLog();
        Map<Class, ContributionDef> keyToContribution = newMap();
        MappedConfiguration<Class, Runnable> delegate = mockMappedConfiguration();

        log.warn(IOCMessages.contributionWasNull(SERVICE_ID, def));

        replay();

        MappedConfiguration<Class, Runnable> wrapper = new ValidatingMappedConfigurationWrapper<Class, Runnable>(
                SERVICE_ID, def, log, Class.class, Runnable.class, keyToContribution, delegate);
View Full Code Here

        String expectedMethod = InternalUtils.asString(ServiceIdConflictMethodModule.class
                .getMethod("buildFred", Object.class), _classFactory);

        Log log = mockLog();

        log.warn(buildMethodConflict(conflictMethodString, expectedMethod), null);

        replay();

        // BigDecimal is arbitrary, any class would do.
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.