test_class.declarator: healthChecker
test_class.modifier: private
test_class.original_string: private SpreadsheetImportHealthChecker healthChecker;
test_class.type: SpreadsheetImportHealthChecker
test_class.var_name: healthChecker
test_class.declarator: activity
test_class.modifier: private
test_class.original_string: private SpreadsheetImportActivity activity;
test_class.type: SpreadsheetImportActivity
test_class.var_name: activity
test_class.declarator: ancestors
test_class.modifier: private
test_class.original_string: private ArrayList ancestors;
test_class.type: ArrayList
test_class.var_name: ancestors
test_class.file: taverna-spreadsheet-import-activity/src/test/java/org/apache/taverna/activities/spreadsheet/SpreadsheetImportHealthCheckerTest.java
test_class.identifier: SpreadsheetImportHealthCheckerTest
test_case.body: @Test
  	public void testCheckHealth() throws Exception {
  		assertEquals(Status.SEVERE, healthChecker.visit(activity, ancestors).getStatus());
  		ObjectNode configuration = JsonNodeFactory.instance.objectNode();
  		configuration.put("columnRange", configuration.objectNode().put("start", 0).put("end", 1));
  		configuration.put("rowRange", configuration.objectNode().put("start", 0).put("end", -1));
  		configuration.put("emptyCellValue", "");
  		configuration.put("allRows", true);
  		configuration.put("excludeFirstRow", false);
  		configuration.put("ignoreBlankRows", false);
  		configuration.put("emptyCellPolicy", "EMPTY_STRING");
  		configuration.put("outputFormat", "PORT_PER_COLUMN");
  		configuration.put("csvDelimiter", ",");
  		activity.configure(configuration);
  		assertEquals(Status.OK, healthChecker.visit(activity, ancestors).getStatus());
  	}
test_case.class_method_signature: SpreadsheetImportHealthCheckerTest.testCheckHealth()
test_case.full_signature: @Test public void testCheckHealth()
test_case.identifier: testCheckHealth
test_case.invocations: assertEquals getStatus visit objectNode put put put objectNode put put put objectNode put put put put put put put configure assertEquals getStatus visit
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCheckHealth()
focal_class.file: taverna-spreadsheet-import-activity/src/main/java/org/apache/taverna/activities/spreadsheet/SpreadsheetImportHealthChecker.java
focal_class.identifier: SpreadsheetImportHealthChecker
focal_class.interfaces: implements HealthChecker<SpreadsheetImportActivity>
focal_class.class_method_signature: SpreadsheetImportHealthChecker.canVisit(Object subject)
focal_class.full_signature: public boolean canVisit(Object subject)
focal_class.identifier: canVisit
focal_class.modifiers: public
focal_class.parameters: (Object subject)
focal_class.return: boolean
focal_class.signature: boolean canVisit(Object subject)
focal_class.class_method_signature: SpreadsheetImportHealthChecker.visit(SpreadsheetImportActivity activity, List<Object> ancestors)
focal_class.full_signature: public VisitReport visit(SpreadsheetImportActivity activity, List<Object> ancestors)
focal_class.identifier: visit
focal_class.modifiers: public
focal_class.parameters: (SpreadsheetImportActivity activity, List<Object> ancestors)
focal_class.return: VisitReport
focal_class.signature: VisitReport visit(SpreadsheetImportActivity activity, List<Object> ancestors)
focal_class.class_method_signature: SpreadsheetImportHealthChecker.isTimeConsuming()
focal_class.full_signature: public boolean isTimeConsuming()
focal_class.identifier: isTimeConsuming
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isTimeConsuming()
focal_method.body: public VisitReport visit(SpreadsheetImportActivity activity, List<Object> ancestors) {
  		Processor p = (Processor) VisitReport.findAncestor(ancestors, Processor.class);
  		if (p == null) {
  			return null;
  		}
  		JsonNode configuration = activity.getConfiguration();
  		if (configuration == null) {
  			return new VisitReport(HealthCheck.getInstance(), p, "Spreadsheet import has not been configured", HealthCheck.NO_CONFIGURATION, Status.SEVERE);
  		}
  		return new VisitReport(HealthCheck.getInstance(), p, "Spreadsheet OK", HealthCheck.NO_PROBLEM, Status.OK);
  	}
focal_method.class_method_signature: SpreadsheetImportHealthChecker.visit(SpreadsheetImportActivity activity, List<Object> ancestors)
focal_method.full_signature: public VisitReport visit(SpreadsheetImportActivity activity, List<Object> ancestors)
focal_method.identifier: visit
focal_method.invocations: findAncestor getConfiguration getInstance getInstance
focal_method.modifiers: public
focal_method.parameters: (SpreadsheetImportActivity activity, List<Object> ancestors)
focal_method.return: VisitReport
focal_method.signature: VisitReport visit(SpreadsheetImportActivity activity, List<Object> ancestors)