Exemplo n.º 1
0
 @Test
 public void testSendSms() {
   Sms sms = new Sms();
   String subject = "Test sms";
   String content = "Ceci est un sms bis";
   String number = "819 581 9150";
   String operator = "fido";
   boolean res = sms.sendSms(number, operator, subject, content);
   assertTrue(res == true);
 }
Exemplo n.º 2
0
  @Override
  public void run() {
    System.out.println("Job ID: " + Thread.currentThread().getId() + " executing sms jobs.");
    if (sms != null) {
      sms.sendSms();
    }

    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
    }
  }