mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestTerraHarvestSystemCommands.java
@Test
    public void testSetId_Invalid()
    {
        final CommandSession testSession = mock(CommandSession.class);
        PrintStream testStream = mock(PrintStream.class);
        when(testSession.getConsole()).thenReturn(testStream);
        
        m_SUT.setId(testSession, "pq@");
        verify(testStream, atLeastOnce()).println(
                "Invalid system id. System id must be in hexadecimal (and start with 0x) or decimal format.");
    }
/**
     * Verify that error log is sent when an invalid system id is set.
     */
Verify that error log is sent when an invalid system id is set.
Verify that error log is sent when an invalid system id is set .
@Test
    public void testSetId_Invalid()
    {
        final CommandSession testSession = mock(CommandSession.class);
        PrintStream testStream = mock(PrintStream.class);
        when(testSession.getConsole()).thenReturn(testStream);
        m_SUT.setId(testSession, "pq@");
        verify(testStream, atLeastOnce()).println(
                "Invalid system id. System id must be in hexadecimal (and start with 0x) or decimal format.");
    }
@ Test public void testSetId_Invalid ( ) { final CommandSession testSession = mock ( CommandSession . class ) ; PrintStream testStream = mock ( PrintStream . class ) ; when ( testSession . getConsole ( ) ) . thenReturn ( testStream ) ; m_SUT . setId ( testSession , "pq@" ) ; verify ( testStream , atLeastOnce ( ) ) . println ( "Invalid system id. System id must be in hexadecimal (and start with 0x) or decimal format." ) ; }
Verify that error log is sent when an invalid system id is set.
Verify that error log is sent when an invalid system id is set .