mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/channel/TestChannelGuiDialogHelper.java
@Test
    public void testGetAllAddresses()
    {
        List<String> addresses = new ArrayList<String>();
        addresses.add("Address1");
       
        when(m_AddressManagerService.getAddressDescriptiveStrings()).thenReturn(addresses);
       
        List<String> answer = m_SUT.getAllKnownAddresses();
       
        assertThat(answer.size(), is(1));
        assertThat(answer.get(0), is("Address1"));
       
    }
/**
     * Verify that a list of addresses are returned.
     */
Verify that a list of addresses are returned.
Verify that a list of addresses are returned .
@Test
    public void testGetAllAddresses()
    {
        List<String> addresses = new ArrayList<String>();
        addresses.add("Address1");
        when(m_AddressManagerService.getAddressDescriptiveStrings()).thenReturn(addresses);
        List<String> answer = m_SUT.getAllKnownAddresses();
        assertThat(answer.size(), is(1));
        assertThat(answer.get(0), is("Address1"));
    }
@ Test public void testGetAllAddresses ( ) { List < String > addresses = new ArrayList < String > ( ) ; addresses . add ( "Address1" ) ; when ( m_AddressManagerService . getAddressDescriptiveStrings ( ) ) . thenReturn ( addresses ) ; List < String > answer = m_SUT . getAllKnownAddresses ( ) ; assertThat ( answer . size ( ) , is ( 1 ) ) ; assertThat ( answer . get ( 0 ) , is ( "Address1" ) ) ; }
Verify that a list of addresses are returned.
Verify that a list of addresses are returned .