mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/push/TestPushEventMessage.java
@Test
    public void testToString()
    {
        Map<String, Object> map = new HashMap<>();
        map.put("prop1", "propval");
        map.put("prop2", "propval2");
        m_SUT.setProperties(map);
        
        String toString = m_SUT.toString();
        
        assertThat(toString, anyOf(is("MessageType: EVENT { "
                + "topic: 'new/event' properties: { 'prop2:propval2' 'prop1:propval' }}"), 
                is("MessageType: EVENT { "
                        + "topic: 'new/event' properties: { 'prop1:propval' 'prop2:propval2' }}")));
        
        m_SUT.setProperties(new HashMap<String, Object>());
        
        toString = m_SUT.toString();
        
        assertThat(toString, is("MessageType: EVENT { topic: 'new/event' properties: { }}"));
    }
/**
     * Verify toString method properly prints out values.
     */
Verify toString method properly prints out values.
Verify toString method properly prints out values .
@Test
    public void testToString()
    {
        Map<String, Object> map = new HashMap<>();
        map.put("prop1", "propval");
        map.put("prop2", "propval2");
        m_SUT.setProperties(map);
        String toString = m_SUT.toString();
        assertThat(toString, anyOf(is("MessageType: EVENT { "
                + "topic: 'new/event' properties: { 'prop2:propval2' 'prop1:propval' }}"), 
                is("MessageType: EVENT { "
                        + "topic: 'new/event' properties: { 'prop1:propval' 'prop2:propval2' }}")));
        m_SUT.setProperties(new HashMap<String, Object>());
        toString = m_SUT.toString();
        assertThat(toString, is("MessageType: EVENT { topic: 'new/event' properties: { }}"));
    }
@ Test public void testToString ( ) { Map < String , Object > map = new HashMap < > ( ) ; map . put ( "prop1" , "propval" ) ; map . put ( "prop2" , "propval2" ) ; m_SUT . setProperties ( map ) ; String toString = m_SUT . toString ( ) ; assertThat ( toString , anyOf ( is ( "MessageType: EVENT { " + "topic: 'new/event' properties: { 'prop2:propval2' 'prop1:propval' }}" ) , is ( "MessageType: EVENT { " + "topic: 'new/event' properties: { 'prop1:propval' 'prop2:propval2' }}" ) ) ) ; m_SUT . setProperties ( new HashMap < String , Object > ( ) ) ; toString = m_SUT . toString ( ) ; assertThat ( toString , is ( "MessageType: EVENT { topic: 'new/event' properties: { }}" ) ) ; }
Verify toString method properly prints out values.
Verify toString method properly prints out values .