mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/push/TestPushContextUtil.java
@Test
    public void testGetPushContext()
    {
        PushContextFactory factory = mock(PushContextFactory.class);
        PushContext context = mock(PushContext.class);
        
        PowerMockito.when(PushContextFactory.getDefault()).thenReturn(factory);
        PowerMockito.when(PushContextFactory.getDefault().getPushContext()).thenReturn(context);
        
        assertThat(m_SUT.getPushContext(), is(context));
    }
/**
     * Test the getPushContext method.
     * Verify that the appropriate PushContext is returned.
     */
Test the getPushContext method.
Verify that the appropriate PushContext is returned.
Test the getPushContext method . Verify that the appropriate PushContext is returned .
@Test
    public void testGetPushContext()
    {
        PushContextFactory factory = mock(PushContextFactory.class);
        PushContext context = mock(PushContext.class);
        PowerMockito.when(PushContextFactory.getDefault()).thenReturn(factory);
        PowerMockito.when(PushContextFactory.getDefault().getPushContext()).thenReturn(context);
        assertThat(m_SUT.getPushContext(), is(context));
    }
@ Test public void testGetPushContext ( ) { PushContextFactory factory = mock ( PushContextFactory . class ) ; PushContext context = mock ( PushContext . class ) ; PowerMockito . when ( PushContextFactory . getDefault ( ) ) . thenReturn ( factory ) ; PowerMockito . when ( PushContextFactory . getDefault ( ) . getPushContext ( ) ) . thenReturn ( context ) ; assertThat ( m_SUT . getPushContext ( ) , is ( context ) ) ; }
Test the getPushContext method.
Test the getPushContext method .