mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestFactoryRegistry.java
@Test
    public void testCreateNewObjectForConfigNullPid() throws IllegalArgumentException,
        FactoryException, FactoryObjectInformationException, IOException, InvalidSyntaxException
    {
        try
        {
            m_SUT.createNewObjectForConfig(m_FactoryDescriptor, "name", null);
            fail("expecting exception");
        }
        catch (NullPointerException e)
        {
            //expecting exception
        }
    }
/**
     * Verify exception if null configuration PID is passed into call to createNewObjectWithConfig.
     */
Verify exception if null configuration PID is passed into call to createNewObjectWithConfig.
Verify exception if null configuration PID is passed into call to createNewObjectWithConfig .
@Test
    public void testCreateNewObjectForConfigNullPid() throws IllegalArgumentException,
        FactoryException, FactoryObjectInformationException, IOException, InvalidSyntaxException
    {
        try
        {
            m_SUT.createNewObjectForConfig(m_FactoryDescriptor, "name", null);
            fail("expecting exception");
        }
        catch (NullPointerException e)
        {
        }
    }
@ Test public void testCreateNewObjectForConfigNullPid ( ) throws IllegalArgumentException , FactoryException , FactoryObjectInformationException , IOException , InvalidSyntaxException { try { m_SUT . createNewObjectForConfig ( m_FactoryDescriptor , "name" , null ) ; fail ( "expecting exception" ) ; } catch ( NullPointerException e ) { } }
Verify exception if null configuration PID is passed into call to createNewObjectWithConfig.
Verify exception if null configuration PID is passed into call to createNewObjectWithConfig .
//expecting exception