Search in sources :

Example 1 with ServiceManager

use of il.ac.technion.cs.smarthouse.system.services.ServiceManager in project Smartcity-Smarthouse by TechnionYP5777.

the class AlertsServiceTest method init.

@Before
public void init() {
    serviceManager_noUser = new ServiceManager(new SystemCore());
    SystemCore s = new SystemCore();
    serviceManager_withUser = new ServiceManager(s);
    s.initializeUser("Bob", "123", "050", "HERE");
    s.getUser().addContact(new Contact("111", "Alice", "999", "a@b.com"), EmergencyLevel.SMS_EMERGENCY_CONTACT);
    s.getUser().addContact(new Contact("111", "Alice", "999", "a@b.com"), EmergencyLevel.EMAIL_EMERGENCY_CONTACT);
    s.getUser().addContact(new Contact("111", "Alice", "999", "a@b.com"), EmergencyLevel.CALL_EMERGENCY_CONTACT);
}
Also used : SystemCore(il.ac.technion.cs.smarthouse.system.SystemCore) ServiceManager(il.ac.technion.cs.smarthouse.system.services.ServiceManager) Contact(il.ac.technion.cs.smarthouse.system.user_information.Contact) Before(org.junit.Before)

Aggregations

SystemCore (il.ac.technion.cs.smarthouse.system.SystemCore)1 ServiceManager (il.ac.technion.cs.smarthouse.system.services.ServiceManager)1 Contact (il.ac.technion.cs.smarthouse.system.user_information.Contact)1 Before (org.junit.Before)1