Code example for Property

Methods: setName

0
        Logger logger = mockLogger(); 
 
        replay(); 
 
        RootClass persistentClass = new RootClass();
        Property idProperty = new Property();
        idProperty.setName("id");
        persistentClass.setIdentifierProperty(idProperty);
        SampleEntity entity = new SampleEntity();
 
        HibernateEntityValueEncoder<SampleEntity> encoder = new HibernateEntityValueEncoder<SampleEntity>(
                SampleEntity.class, persistentClass, session, access, typeCoercer, logger);
 
        assertNull(encoder.toClient(entity));
 
        verify(); 
    } 
 
    @Test
    public void to_value_not_found()