Search in sources :

Example 1 with ModelExt1

use of org.glassfish.admin.rest.model.ModelExt1 in project Payara by payara.

the class ModelExtensionTest method testModelExtension.

@Test
public void testModelExtension() {
    BaseModel model = CompositeUtil.instance().getModel(BaseModel.class);
    Assert.assertTrue(ModelExt1.class.isAssignableFrom(model.getClass()));
    Assert.assertTrue(ModelExt2.class.isAssignableFrom(model.getClass()));
}
Also used : BaseModel(org.glassfish.admin.rest.model.BaseModel) ModelExt2(org.glassfish.admin.rest.model.ModelExt2) ModelExt1(org.glassfish.admin.rest.model.ModelExt1) Test(org.testng.annotations.Test)

Aggregations

BaseModel (org.glassfish.admin.rest.model.BaseModel)1 ModelExt1 (org.glassfish.admin.rest.model.ModelExt1)1 ModelExt2 (org.glassfish.admin.rest.model.ModelExt2)1 Test (org.testng.annotations.Test)1