mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestPowerManagerCommands.java
@Test
    public void testInfoNotEnabled() throws IOException
    {
        when(m_Configuration.getProperties()).thenReturn(null);
        
        when(m_PlatformPowerManager.getBatteryAmpHoursRem()).thenReturn(10);
        when(m_PlatformPowerManager.getBatteryVoltage()).thenReturn(20);
        
        m_SUT.info(m_Session);
        
        verify(m_PrintStream).format("Overall PlatformPowerManager status: %s%n%n\t"
                + "Enabled: %s%n\tPlatformPowerManager Present: %s%n%n", "Enabled", "<unknown>", "Yes");
        
        verify(m_PrintStream).format("Battery Remaining: %s%n%n", "10 amp-hours");
        verify(m_PrintStream).format("Battery Voltage: %s%n%n", "20 mV");
    }
/**
     * Verify that the info message is correctly printed based on configuration not being enabled.
     */
Verify that the info message is correctly printed based on configuration not being enabled.
Verify that the info message is correctly printed based on configuration not being enabled .
@Test
    public void testInfoNotEnabled() throws IOException
    {
        when(m_Configuration.getProperties()).thenReturn(null);
        when(m_PlatformPowerManager.getBatteryAmpHoursRem()).thenReturn(10);
        when(m_PlatformPowerManager.getBatteryVoltage()).thenReturn(20);
        m_SUT.info(m_Session);
        verify(m_PrintStream).format("Overall PlatformPowerManager status: %s%n%n\t"
                + "Enabled: %s%n\tPlatformPowerManager Present: %s%n%n", "Enabled", "<unknown>", "Yes");
        verify(m_PrintStream).format("Battery Remaining: %s%n%n", "10 amp-hours");
        verify(m_PrintStream).format("Battery Voltage: %s%n%n", "20 mV");
    }
@ Test public void testInfoNotEnabled ( ) throws IOException { when ( m_Configuration . getProperties ( ) ) . thenReturn ( null ) ; when ( m_PlatformPowerManager . getBatteryAmpHoursRem ( ) ) . thenReturn ( 10 ) ; when ( m_PlatformPowerManager . getBatteryVoltage ( ) ) . thenReturn ( 20 ) ; m_SUT . info ( m_Session ) ; verify ( m_PrintStream ) . format ( "Overall PlatformPowerManager status: %s%n%n\t" + "Enabled: %s%n\tPlatformPowerManager Present: %s%n%n" , "Enabled" , "<unknown>" , "Yes" ) ; verify ( m_PrintStream ) . format ( "Battery Remaining: %s%n%n" , "10 amp-hours" ) ; verify ( m_PrintStream ) . format ( "Battery Voltage: %s%n%n" , "20 mV" ) ; }
Verify that the info message is correctly printed based on configuration not being enabled.
Verify that the info message is correctly printed based on configuration not being enabled .