Package hudson.plugins.analysis.core

Examples of hudson.plugins.analysis.core.Settings


     * Tests if a "true" PluginLogger is created, when the Quiet Mode is deactivated.
     */
    @Test
    public void quietModeDeactivated() {
        // Given
        Settings settings = mock(Settings.class);
        LoggerFactory loggerFactory = new LoggerFactory(settings);

        // When
        when(settings.getQuietMode()).thenReturn(false);
        PluginLogger logger = loggerFactory.createLogger(mock(PrintStream.class), "");

        // Then
        assertFalse("LogMode is not Quiet but LoggerFactory creates a NullLogger!", logger instanceof NullLogger);
    }
View Full Code Here


     * Tests if a NullLogger is created, when the Quiet Mode is active.
     */
    @Test
    public void quietModeActivated() {
        // Given
        Settings settings = mock(Settings.class);
        LoggerFactory lf = new LoggerFactory(settings);

        // When
        when(settings.getQuietMode()).thenReturn(true);
        PluginLogger logger = lf.createLogger(mock(PrintStream.class), "");

        // Then
        assertTrue("LogMode is Quiet but LoggerFactory creates not a NullLogger!", logger instanceof NullLogger);
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.analysis.core.Settings

Copyright © 2018 www.massapicom. 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.