mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/comms/TestCommsStackRequest.java
@Test
    public void testGetSelectedCommsStacksAll()
    {
        List<CommsStackModel> selectedStacks = m_SUT.getSelectedCommsStacksAsync(systemId1, null);
        List<CommsStackModel> stacks = m_SUT.getCommsStacksAsync(systemId1);
        
        assertThat(selectedStacks.size(), is(4));
        
        /**
         * Assert that selectedStacks and all stacks are identical since null selected stack was passed in
         */
        assertThat(stacks.get(0).getTransport(), is(selectedStacks.get(0).getTransport()));
        assertThat(stacks.get(0).getLink(), is(selectedStacks.get(0).getLink()));
        assertThat(stacks.get(0).getPhysical(), is(selectedStacks.get(0).getPhysical()));
        
        assertThat(stacks.get(1).getTransport(), is(selectedStacks.get(1).getTransport()));
        assertThat(stacks.get(1).getLink(), is(selectedStacks.get(1).getLink()));
        assertThat(stacks.get(1).getPhysical(), is(selectedStacks.get(1).getPhysical()));
        
        assertThat(stacks.get(2).getTransport(), is(selectedStacks.get(2).getTransport()));
        assertThat(stacks.get(2).getLink(), is(selectedStacks.get(2).getLink()));
        assertThat(stacks.get(2).getPhysical(), is(selectedStacks.get(2).getPhysical()));

        assertThat(stacks.get(3).getTransport(), is(selectedStacks.get(3).getTransport()));
        assertThat(stacks.get(3).getLink(), is(selectedStacks.get(3).getLink()));
        assertThat(stacks.get(3).getPhysical(), is(selectedStacks.get(3).getPhysical()));
    }
/**
     * Verify that method returns all stacks if selected stack is null.
     * Verify that method returns one stack if one is selected.
     */
Verify that method returns all stacks if selected stack is null.
Verify that method returns one stack if one is selected.
Verify that method returns all stacks if selected stack is null . Verify that method returns one stack if one is selected .
@Test
    public void testGetSelectedCommsStacksAll()
    {
        List<CommsStackModel> selectedStacks = m_SUT.getSelectedCommsStacksAsync(systemId1, null);
        List<CommsStackModel> stacks = m_SUT.getCommsStacksAsync(systemId1);
        assertThat(selectedStacks.size(), is(4));
        /**
         * Assert that selectedStacks and all stacks are identical since null selected stack was passed in
         */
        assertThat(stacks.get(0).getTransport(), is(selectedStacks.get(0).getTransport()));
        assertThat(stacks.get(0).getLink(), is(selectedStacks.get(0).getLink()));
        assertThat(stacks.get(0).getPhysical(), is(selectedStacks.get(0).getPhysical()));
        assertThat(stacks.get(1).getTransport(), is(selectedStacks.get(1).getTransport()));
        assertThat(stacks.get(1).getLink(), is(selectedStacks.get(1).getLink()));
        assertThat(stacks.get(1).getPhysical(), is(selectedStacks.get(1).getPhysical()));
        assertThat(stacks.get(2).getTransport(), is(selectedStacks.get(2).getTransport()));
        assertThat(stacks.get(2).getLink(), is(selectedStacks.get(2).getLink()));
        assertThat(stacks.get(2).getPhysical(), is(selectedStacks.get(2).getPhysical()));
        assertThat(stacks.get(3).getTransport(), is(selectedStacks.get(3).getTransport()));
        assertThat(stacks.get(3).getLink(), is(selectedStacks.get(3).getLink()));
        assertThat(stacks.get(3).getPhysical(), is(selectedStacks.get(3).getPhysical()));
    }
@ Test public void testGetSelectedCommsStacksAll ( ) { List < CommsStackModel > selectedStacks = m_SUT . getSelectedCommsStacksAsync ( systemId1 , null ) ; List < CommsStackModel > stacks = m_SUT . getCommsStacksAsync ( systemId1 ) ; assertThat ( selectedStacks . size ( ) , is ( 4 ) ) ; /**
         * Assert that selectedStacks and all stacks are identical since null selected stack was passed in
         */ assertThat ( stacks . get ( 0 ) . getTransport ( ) , is ( selectedStacks . get ( 0 ) . getTransport ( ) ) ) ; assertThat ( stacks . get ( 0 ) . getLink ( ) , is ( selectedStacks . get ( 0 ) . getLink ( ) ) ) ; assertThat ( stacks . get ( 0 ) . getPhysical ( ) , is ( selectedStacks . get ( 0 ) . getPhysical ( ) ) ) ; assertThat ( stacks . get ( 1 ) . getTransport ( ) , is ( selectedStacks . get ( 1 ) . getTransport ( ) ) ) ; assertThat ( stacks . get ( 1 ) . getLink ( ) , is ( selectedStacks . get ( 1 ) . getLink ( ) ) ) ; assertThat ( stacks . get ( 1 ) . getPhysical ( ) , is ( selectedStacks . get ( 1 ) . getPhysical ( ) ) ) ; assertThat ( stacks . get ( 2 ) . getTransport ( ) , is ( selectedStacks . get ( 2 ) . getTransport ( ) ) ) ; assertThat ( stacks . get ( 2 ) . getLink ( ) , is ( selectedStacks . get ( 2 ) . getLink ( ) ) ) ; assertThat ( stacks . get ( 2 ) . getPhysical ( ) , is ( selectedStacks . get ( 2 ) . getPhysical ( ) ) ) ; assertThat ( stacks . get ( 3 ) . getTransport ( ) , is ( selectedStacks . get ( 3 ) . getTransport ( ) ) ) ; assertThat ( stacks . get ( 3 ) . getLink ( ) , is ( selectedStacks . get ( 3 ) . getLink ( ) ) ) ; assertThat ( stacks . get ( 3 ) . getPhysical ( ) , is ( selectedStacks . get ( 3 ) . getPhysical ( ) ) ) ; }
Verify that method returns all stacks if selected stack is null.
Verify that method returns all stacks if selected stack is null .