test_class.file: rest-backend/src/test/java/org/eclipse/steady/backend/util/SmtpClientTest.java
test_class.identifier: SmtpClientTest
test_case.body: @Test
    public void testTransform() {
      final Set<String> addresses = new HashSet<String>();
      assertEquals(0, SmtpClient.transform(addresses).length);
      addresses.add("foo@bar.com");
      assertEquals(1, SmtpClient.transform(addresses).length);
    }
test_case.class_method_signature: SmtpClientTest.testTransform()
test_case.full_signature: @Test public void testTransform()
test_case.identifier: testTransform
test_case.invocations: assertEquals transform add assertEquals transform
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTransform()
focal_class.declarator: log = LoggerFactory.getLogger(SmtpClient.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger log = LoggerFactory.getLogger(SmtpClient.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: SMTP_HOST = "vulas.backend.smtp.host"
focal_class.modifier: public static final
focal_class.original_string: public static final String SMTP_HOST = "vulas.backend.smtp.host";
focal_class.type: String
focal_class.var_name: SMTP_HOST
focal_class.declarator: SMTP_PORT = "vulas.backend.smtp.port"
focal_class.modifier: public static final
focal_class.original_string: public static final String SMTP_PORT = "vulas.backend.smtp.port";
focal_class.type: String
focal_class.var_name: SMTP_PORT
focal_class.declarator: SMTP_USER = "vulas.backend.smtp.user"
focal_class.modifier: public static final
focal_class.original_string: public static final String SMTP_USER = "vulas.backend.smtp.user";
focal_class.type: String
focal_class.var_name: SMTP_USER
focal_class.declarator: SMTP_PWD = "vulas.backend.smtp.pwd"
focal_class.modifier: public static final
focal_class.original_string: public static final String SMTP_PWD = "vulas.backend.smtp.pwd";
focal_class.type: String
focal_class.var_name: SMTP_PWD
focal_class.declarator: props = null
focal_class.modifier: private
focal_class.original_string: private Properties props = null;
focal_class.type: Properties
focal_class.var_name: props
focal_class.file: rest-backend/src/main/java/org/eclipse/steady/backend/util/SmtpClient.java
focal_class.identifier: SmtpClient
focal_class.class_method_signature: SmtpClient.SmtpClient()
focal_class.full_signature: public  SmtpClient()
focal_class.identifier: SmtpClient
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SmtpClient()
focal_class.class_method_signature: SmtpClient.send(@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.full_signature: public void send(@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.identifier: send
focal_class.modifiers: public
focal_class.parameters: (@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.return: void
focal_class.signature: void send(@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.class_method_signature: SmtpClient.sendWithAttachement(@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.full_signature: private void sendWithAttachement(@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.identifier: sendWithAttachement
focal_class.modifiers: private
focal_class.parameters: (@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.return: void
focal_class.signature: void sendWithAttachement(@NotNull org.eclipse.steady.backend.util.Message _msg)
focal_class.class_method_signature: SmtpClient.transform(Set<String> _recipients)
focal_class.full_signature: static final InternetAddress[] transform(Set<String> _recipients)
focal_class.identifier: transform
focal_class.modifiers: static final
focal_class.parameters: (Set<String> _recipients)
focal_class.return: InternetAddress[]
focal_class.signature: InternetAddress[] transform(Set<String> _recipients)
focal_class.class_method_signature: SmtpClient.getSmtpProperties(Configuration _cfg)
focal_class.full_signature: public static Properties getSmtpProperties(Configuration _cfg)
focal_class.identifier: getSmtpProperties
focal_class.modifiers: public static
focal_class.parameters: (Configuration _cfg)
focal_class.return: Properties
focal_class.signature: Properties getSmtpProperties(Configuration _cfg)
focal_method.body: static final InternetAddress[] transform(Set<String> _recipients) {
      Set<InternetAddress> recipients = new HashSet<InternetAddress>();
      for (String to : _recipients) {
        try {
          recipients.add(InternetAddress.parse(to)[0]);
        } catch (AddressException e) {
          log.error("[" + to + "] is not a valid email address");
        }
      }
      return recipients.toArray(new InternetAddress[recipients.size()]);
    }
focal_method.class_method_signature: SmtpClient.transform(Set<String> _recipients)
focal_method.full_signature: static final InternetAddress[] transform(Set<String> _recipients)
focal_method.identifier: transform
focal_method.invocations: add parse error toArray size
focal_method.modifiers: static final
focal_method.parameters: (Set<String> _recipients)
focal_method.return: InternetAddress[]
focal_method.signature: InternetAddress[] transform(Set<String> _recipients)