Code example for LocatorImpl

Methods: getLineNumber, setLineNumber

0
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            method = "setPublicId", 
            args = { String.class }
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            method = "getPublicId", 
            args = { } 
        ) 
    }) 
    public void testSetPublicIdGetPublicId() { 
        LocatorImpl l = new LocatorImpl();
         
        l.setPublicId(PUB);
        assertEquals(PUB, l.getPublicId());
         
        l.setPublicId(null);
        assertEquals(null, l.getPublicId());
    }