|
|
@ -478,18 +478,10 @@ public class DeviceManagementProviderServiceTest extends BaseDeviceManagementTes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test(expectedExceptions = DeviceManagementException.class)
|
|
|
|
public void testSendRegistrationEmailNoMetaInfo() {
|
|
|
|
public void testSendRegistrationEmailNoMetaInfo() throws ConfigurationManagementException, DeviceManagementException {
|
|
|
|
try {
|
|
|
|
|
|
|
|
deviceMgtService.sendRegistrationEmail(null);
|
|
|
|
deviceMgtService.sendRegistrationEmail(null);
|
|
|
|
Assert.assertTrue(false);
|
|
|
|
Assert.assertTrue(false);
|
|
|
|
} catch (ConfigurationManagementException e) {
|
|
|
|
|
|
|
|
Assert.assertTrue(false, "Error in sending registration email : Configration " +
|
|
|
|
|
|
|
|
"related error" + e.getMessage());
|
|
|
|
|
|
|
|
} catch (DeviceManagementException e) {
|
|
|
|
|
|
|
|
Assert.assertTrue(true, "Device Management Exception thrown when meta info for " +
|
|
|
|
|
|
|
|
"email sending is not available" + e.getMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|