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);
}
Aggregations