mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/link/TestLinkLayerImpl.java
@Test
    public void testSendNullFrame() throws CCommException
    {
        Address addr = mock(Address.class);
        
        //null for the frame
        try
        {
            m_SUT.send(null, addr);
            fail("Expecting exception");
        }
        catch (NullPointerException e)
        {
        }

        verify(m_WakeLock, never()).activate();
    }
/**
     * Verify that frame values are checked before invocation of send to the proxy.
     */
Verify that frame values are checked before invocation of send to the proxy.
Verify that frame values are checked before invocation of send to the proxy .
@Test
    public void testSendNullFrame() throws CCommException
    {
        Address addr = mock(Address.class);
        try
        {
            m_SUT.send(null, addr);
            fail("Expecting exception");
        }
        catch (NullPointerException e)
        {
        }
        verify(m_WakeLock, never()).activate();
    }
@ Test public void testSendNullFrame ( ) throws CCommException { Address addr = mock ( Address . class ) ; try { m_SUT . send ( null , addr ) ; fail ( "Expecting exception" ) ; } catch ( NullPointerException e ) { } verify ( m_WakeLock , never ( ) ) . activate ( ) ; }
Verify that frame values are checked before invocation of send to the proxy.
Verify that frame values are checked before invocation of send to the proxy .
//null for the frame