test_class.declarator: alertTemplateProcessor
test_class.modifier: private
test_class.original_string: private AlertTemplateProcessor alertTemplateProcessor;
test_class.type: AlertTemplateProcessor
test_class.var_name: alertTemplateProcessor
test_class.declarator: testIncident
test_class.modifier: private
test_class.original_string: private Incident testIncident;
test_class.type: Incident
test_class.var_name: testIncident
test_class.file: stagemonitor-alerting/src/test/java/org/stagemonitor/alerting/alerter/AlertTemplateProcessorTest.java
test_class.identifier: AlertTemplateProcessorTest
test_class.superclass: extends AbstractAlerterTest
test_case.body: @Test
  	public void testProcessHtmlTemplate() throws Exception {
  		assertEquals(String.format(
  				"<h3>Incident for check Test Timer</h3>\n" +
  				"First failure: %s<br>\n" +
  				"Old status: OK<br>\n" +
  				"New status: CRITICAL<br>\n" +
  				"Failing checks: 2<br>\n" +
  				"Hosts: testHost2<br>\n" +
  				"Instances: testInstance<br><br>\n" +
  				"\n" +
  				"<table>\n" +
  				"\t<thead>\n" +
  				"\t<tr>\n" +
  				"\t\t<th>Host</th>\n" +
  				"\t\t<th>Instance</th>\n" +
  				"\t\t<th>Status</th>\n" +
  				"\t\t<th>Description</th>\n" +
  				"\t\t<th>Current Value</th>\n" +
  				"\t</tr>\n" +
  				"\t</thead>\n" +
  				"\t<tbody>\n" +
  				"\t\t\t<tr>\n" +
  				"\t\t\t\t<td>testHost2</td>\n" +
  				"\t\t\t\t<td>testInstance</td>\n" +
  				"\t\t\t\t<td>CRITICAL</td>\n" +
  				"\t\t\t\t<td>test</td>\n" +
  				"\t\t\t\t<td>10</td>\n" +
  				"\t\t\t</tr>\n" +
  				"\t\t\t<tr>\n" +
  				"\t\t\t\t<td>testHost2</td>\n" +
  				"\t\t\t\t<td>testInstance</td>\n" +
  				"\t\t\t\t<td>ERROR</td>\n" +
  				"\t\t\t\t<td>test</td>\n" +
  				"\t\t\t\t<td>10</td>\n" +
  				"\t\t\t</tr>\n" +
  				"\t</tbody>\n" +
  				"</table>\n", toFreemarkerIsoLocal(testIncident.getFirstFailureAt())),
  				alertTemplateProcessor.processHtmlTemplate(testIncident));
  
  	}
test_case.class_method_signature: AlertTemplateProcessorTest.testProcessHtmlTemplate()
test_case.full_signature: @Test public void testProcessHtmlTemplate()
test_case.identifier: testProcessHtmlTemplate
test_case.invocations: assertEquals format toFreemarkerIsoLocal getFirstFailureAt processHtmlTemplate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProcessHtmlTemplate()
focal_class.declarator: alertingPlugin
focal_class.modifier: private final
focal_class.original_string: private final AlertingPlugin alertingPlugin;
focal_class.type: AlertingPlugin
focal_class.var_name: alertingPlugin
focal_class.declarator: cfg
focal_class.modifier: private final
focal_class.original_string: private final Configuration cfg;
focal_class.type: Configuration
focal_class.var_name: cfg
focal_class.file: stagemonitor-alerting/src/main/java/org/stagemonitor/alerting/alerter/AlertTemplateProcessor.java
focal_class.identifier: AlertTemplateProcessor
focal_class.class_method_signature: AlertTemplateProcessor.AlertTemplateProcessor(AlertingPlugin alertingPlugin)
focal_class.full_signature: public  AlertTemplateProcessor(AlertingPlugin alertingPlugin)
focal_class.identifier: AlertTemplateProcessor
focal_class.modifiers: public
focal_class.parameters: (AlertingPlugin alertingPlugin)
focal_class.signature:  AlertTemplateProcessor(AlertingPlugin alertingPlugin)
focal_class.class_method_signature: AlertTemplateProcessor.processHtmlTemplate(Incident incident)
focal_class.full_signature: public String processHtmlTemplate(Incident incident)
focal_class.identifier: processHtmlTemplate
focal_class.modifiers: public
focal_class.parameters: (Incident incident)
focal_class.return: String
focal_class.signature: String processHtmlTemplate(Incident incident)
focal_class.class_method_signature: AlertTemplateProcessor.processPlainTextTemplate(Incident incident)
focal_class.full_signature: public String processPlainTextTemplate(Incident incident)
focal_class.identifier: processPlainTextTemplate
focal_class.modifiers: public
focal_class.parameters: (Incident incident)
focal_class.return: String
focal_class.signature: String processPlainTextTemplate(Incident incident)
focal_class.class_method_signature: AlertTemplateProcessor.processShortDescriptionTemplate(Incident incident)
focal_class.full_signature: public String processShortDescriptionTemplate(Incident incident)
focal_class.identifier: processShortDescriptionTemplate
focal_class.modifiers: public
focal_class.parameters: (Incident incident)
focal_class.return: String
focal_class.signature: String processShortDescriptionTemplate(Incident incident)
focal_class.class_method_signature: AlertTemplateProcessor.processTemplate(String templateName, String templateString, Incident incident)
focal_class.full_signature: private String processTemplate(String templateName, String templateString, Incident incident)
focal_class.identifier: processTemplate
focal_class.modifiers: private
focal_class.parameters: (String templateName, String templateString, Incident incident)
focal_class.return: String
focal_class.signature: String processTemplate(String templateName, String templateString, Incident incident)
focal_method.body: public String processHtmlTemplate(Incident incident) {
  		return processTemplate("alertsHtml.ftl", alertingPlugin.getHtmlAlertTemplate(), incident);
  	}
focal_method.class_method_signature: AlertTemplateProcessor.processHtmlTemplate(Incident incident)
focal_method.full_signature: public String processHtmlTemplate(Incident incident)
focal_method.identifier: processHtmlTemplate
focal_method.invocations: processTemplate getHtmlAlertTemplate
focal_method.modifiers: public
focal_method.parameters: (Incident incident)
focal_method.return: String
focal_method.signature: String processHtmlTemplate(Incident incident)