Package com.dooapp.fxform.reflection.classcast

Source Code of com.dooapp.fxform.reflection.classcast.ClassCastTest

package com.dooapp.fxform.reflection.classcast;

import com.dooapp.fxform.FXForm;
import com.dooapp.fxform.JavaFXRule;
import com.dooapp.fxform.filter.IncludeFilter;
import org.junit.Rule;
import org.junit.Test;

/**
* This class test if the ClassCastException is not reproduced.
* The classCast come when you add this to the Device class "extends SuperDevice<Device<?>>"
* <br>
* Created at 13/12/13 17:01.<br>
*
* @author Bastien
*/
public class ClassCastTest {

    @Rule
    public JavaFXRule javaFXRule = new JavaFXRule();

    @Test
    public void classCastTest() {
        FXForm fxForm = new FXForm();
        fxForm.addFilters(new IncludeFilter("model"));
        Device device = new Device();
        device.setModel(new DeviceModel());
        fxForm.setSource(device);
    }

}
TOP

Related Classes of com.dooapp.fxform.reflection.classcast.ClassCastTest

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.