Package org.slf4j

Examples of org.slf4j.Logger.warn()


        Logger logger = mockLogger();
        Map<?, ContributionDef> keyToContribution = newMap();
        MappedConfiguration delegate = mockMappedConfiguration();
        Runnable value = mockRunnable();

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

        replay();

        MappedConfiguration wrapper = new ValidatingMappedConfigurationWrapper(SERVICE_ID, def,
View Full Code Here


        ContributionDef def = newContributionDef("contributionPlaceholder1");
        Logger logger = mockLogger();
        Map<?, ContributionDef> keyToContribution = newMap();
        MappedConfiguration delegate = mockMappedConfiguration();

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

        ContributionDef def = newContributionDef("contributionPlaceholder1");
        Logger logger = mockLogger();
        Map<Class, ContributionDef> keyToContribution = newMap();
        MappedConfiguration<Class, Runnable> delegate = mockMappedConfiguration();

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

        replay();

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

        Logger logger = mockLogger();
        Configuration configuration = mockConfiguration();
        ContributionDef def = new ContributionDefImpl("Bar", findMethod("contributeUnorderedNull"),
                getClassFactory());

        logger.warn(IOCMessages.contributionWasNull("Bar", def));

        replay();

        Configuration wrapper = new ValidatingConfigurationWrapper("Bar", logger, Runnable.class,
                def, configuration);
View Full Code Here

        Logger logger = mockLogger();
        Configuration configuration = mockConfiguration();
        ContributionDef def = new ContributionDefImpl("Bar", findMethod("contributeUnorderedNull"),
                getClassFactory());

        logger.warn(IOCMessages
                .contributionWrongValueType("Bar", def, String.class, Runnable.class));

        replay();

        Configuration wrapper = new ValidatingConfigurationWrapper("Bar", logger, Runnable.class,
View Full Code Here

        ContributionDef def = new ContributionDefImpl("Service", method, getClassFactory());
        Logger log = mockLogger();
        OrderedConfiguration<Runnable> configuration = mockOrderedConfiguration();

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

    @Test
    public void missing_constraint_type()
    {
        Logger logger = mockLogger();

        logger.warn(UtilMessages.constraintFormat("fred", "barney"));

        replay();

        Orderer<String> o = new Orderer<String>(logger);
View Full Code Here

    @Test
    public void unknown_constraint_type()
    {
        Logger logger = mockLogger();

        logger.warn(UtilMessages.constraintFormat("nearby:fred", "barney"));

        replay();

        Orderer<String> o = new Orderer<String>(logger);
View Full Code Here

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

        verify();

        logger.warn(UtilMessages.duplicateOrderer("fred"));

        replay();

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

    @Test
    public void dependency_cycle()
    {
        Logger logger = mockLogger();

        logger.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.");

        replay();
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.