Search in sources :

Example 1 with SmarthouseApplication

use of il.ac.technion.cs.smarthouse.developers_api.SmarthouseApplication in project Smartcity-Smarthouse by TechnionYP5777.

the class AppInstallHelperTest method testLoadGoodApp.

@Test
public void testLoadGoodApp() {
    try {
        final SmarthouseApplication a = AppInstallHelper.loadApplication(classesNames_app1);
        assert a instanceof MyTestClass1;
        final MyTestClass1 t = (MyTestClass1) a;
        assert !t.isLoaded();
        t.onLoad();
        assert t.isLoaded();
    } catch (final AppInstallerException ¢) {
        Assert.fail(¢.getMessage());
    }
}
Also used : SmarthouseApplication(il.ac.technion.cs.smarthouse.developers_api.SmarthouseApplication) MyTestClass1(il.ac.technion.cs.smarthouse.system.applications.installer.examples.MyTestClass1) Test(org.junit.Test)

Aggregations

SmarthouseApplication (il.ac.technion.cs.smarthouse.developers_api.SmarthouseApplication)1 MyTestClass1 (il.ac.technion.cs.smarthouse.system.applications.installer.examples.MyTestClass1)1 Test (org.junit.Test)1