mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsStackRequest.java
@Test
    public void testGetCommsStacks()
    {
        List<CommsStackModel> stacks = m_SUT.getCommsStacksAsync(systemId1);
        assertThat(stacks.size(), is(4));   
        
        assertThat(stacks.get(0).getTransport().getUuid(), is(uuid1));
        assertThat(stacks.get(0).getLink().getUuid(), is(uuid2));
        assertThat(stacks.get(0).getPhysical().getUuid(), is(uuid3));
        assertThat(stacks.get(0).isComplete(), is(true));
        
        assertThat(stacks.get(1).getTransport(), is(nullValue()));
        assertThat(stacks.get(1).getLink().getUuid(), is(uuid4));
        assertThat(stacks.get(1).getPhysical().getUuid(), is(uuid5));
        assertThat(stacks.get(1).isComplete(), is(true));
        
        assertThat(stacks.get(3).getTransport(), is(nullValue()));
        assertThat(stacks.get(3).getLink(), is(nullValue()));
        assertThat(stacks.get(3).getPhysical().getUuid(), is(uuid6));
        assertThat(stacks.get(3).isComplete(), is(true));

        assertThat(stacks.get(2).getTransport(), is(nullValue()));
        assertThat(stacks.get(2).getLink().getUuid(), is(uuid7));
        assertThat(stacks.get(2).getPhysical(), is(nullValue()));
        assertThat(stacks.get(2).isComplete(), is(true));
    }
/**
     * Verify method returns all comms stacks.
     */
Verify method returns all comms stacks.
Verify method returns all comms stacks .
@Test
    public void testGetCommsStacks()
    {
        List<CommsStackModel> stacks = m_SUT.getCommsStacksAsync(systemId1);
        assertThat(stacks.size(), is(4));   
        assertThat(stacks.get(0).getTransport().getUuid(), is(uuid1));
        assertThat(stacks.get(0).getLink().getUuid(), is(uuid2));
        assertThat(stacks.get(0).getPhysical().getUuid(), is(uuid3));
        assertThat(stacks.get(0).isComplete(), is(true));
        assertThat(stacks.get(1).getTransport(), is(nullValue()));
        assertThat(stacks.get(1).getLink().getUuid(), is(uuid4));
        assertThat(stacks.get(1).getPhysical().getUuid(), is(uuid5));
        assertThat(stacks.get(1).isComplete(), is(true));
        assertThat(stacks.get(3).getTransport(), is(nullValue()));
        assertThat(stacks.get(3).getLink(), is(nullValue()));
        assertThat(stacks.get(3).getPhysical().getUuid(), is(uuid6));
        assertThat(stacks.get(3).isComplete(), is(true));
        assertThat(stacks.get(2).getTransport(), is(nullValue()));
        assertThat(stacks.get(2).getLink().getUuid(), is(uuid7));
        assertThat(stacks.get(2).getPhysical(), is(nullValue()));
        assertThat(stacks.get(2).isComplete(), is(true));
    }
@ Test public void testGetCommsStacks ( ) { List < CommsStackModel > stacks = m_SUT . getCommsStacksAsync ( systemId1 ) ; assertThat ( stacks . size ( ) , is ( 4 ) ) ; assertThat ( stacks . get ( 0 ) . getTransport ( ) . getUuid ( ) , is ( uuid1 ) ) ; assertThat ( stacks . get ( 0 ) . getLink ( ) . getUuid ( ) , is ( uuid2 ) ) ; assertThat ( stacks . get ( 0 ) . getPhysical ( ) . getUuid ( ) , is ( uuid3 ) ) ; assertThat ( stacks . get ( 0 ) . isComplete ( ) , is ( true ) ) ; assertThat ( stacks . get ( 1 ) . getTransport ( ) , is ( nullValue ( ) ) ) ; assertThat ( stacks . get ( 1 ) . getLink ( ) . getUuid ( ) , is ( uuid4 ) ) ; assertThat ( stacks . get ( 1 ) . getPhysical ( ) . getUuid ( ) , is ( uuid5 ) ) ; assertThat ( stacks . get ( 1 ) . isComplete ( ) , is ( true ) ) ; assertThat ( stacks . get ( 3 ) . getTransport ( ) , is ( nullValue ( ) ) ) ; assertThat ( stacks . get ( 3 ) . getLink ( ) , is ( nullValue ( ) ) ) ; assertThat ( stacks . get ( 3 ) . getPhysical ( ) . getUuid ( ) , is ( uuid6 ) ) ; assertThat ( stacks . get ( 3 ) . isComplete ( ) , is ( true ) ) ; assertThat ( stacks . get ( 2 ) . getTransport ( ) , is ( nullValue ( ) ) ) ; assertThat ( stacks . get ( 2 ) . getLink ( ) . getUuid ( ) , is ( uuid7 ) ) ; assertThat ( stacks . get ( 2 ) . getPhysical ( ) , is ( nullValue ( ) ) ) ; assertThat ( stacks . get ( 2 ) . isComplete ( ) , is ( true ) ) ; }
Verify method returns all comms stacks.
Verify method returns all comms stacks .