mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/link/TestLinkLayerImpl.java
@Test
    public void testNullFrame()
    {
        //mocks
        Address sourceAddress = mock(Address.class); 
        Address destAddress = mock(Address.class);
        
        //act
        try
        {
            m_SUT.postReceiveEvent(sourceAddress, destAddress, null);
            fail("Expecting exception");
        }
        catch (NullPointerException e)
        {
            
        }
    }
/**
     * Verify exception if frame is null.
     */
Verify exception if frame is null.
Verify exception if frame is null .
@Test
    public void testNullFrame()
    {
        Address sourceAddress = mock(Address.class); 
        Address destAddress = mock(Address.class);
        try
        {
            m_SUT.postReceiveEvent(sourceAddress, destAddress, null);
            fail("Expecting exception");
        }
        catch (NullPointerException e)
        {
        }
    }
@ Test public void testNullFrame ( ) { Address sourceAddress = mock ( Address . class ) ; Address destAddress = mock ( Address . class ) ; try { m_SUT . postReceiveEvent ( sourceAddress , destAddress , null ) ; fail ( "Expecting exception" ) ; } catch ( NullPointerException e ) { } }
Verify exception if frame is null.
Verify exception if frame is null .
//mocks //act