Package

Source Code of PropertyEnhancerTest

import java.lang.reflect.Method;

import models.PropertyEnhancerModel;

import org.junit.Test;

import play.test.UnitTest;

public class PropertyEnhancerTest extends UnitTest {

    @Test
    public void checkForSyntheticMethods() throws Exception {
        PropertyEnhancerModel model = new PropertyEnhancerModel();
        Method getter = model.getClass().getMethod("getText");
        assertFalse(getter.isSynthetic());
        Method setter = model.getClass().getMethod("setText", String.class);
        assertTrue(setter.isSynthetic());
    }

}
TOP

Related Classes of PropertyEnhancerTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.