public Invocation(String name, int[] index, Invocation parent, StatusReport<?, ?> report) { this.name = name; this.index = index; this.parent = parent; this.report = report; invocations = new TreeSet<>(); inputs = new TreeMap<>(); for (Port port : report.getSubject().getInputPorts()) inputs.put(port.getName(), null); outputs = new TreeMap<>(); for (Port port : report.getSubject().getOutputPorts()) outputs.put(port.getName(), null); setStartedDate(new Date()); if (parent != null) parent.getInvocations().add(this); report.addInvocation(this); }
/** * Test method for {@link org.apache.taverna.platform.report.StatusReport#getSubject()}. */ @Test public void testGetSubject() { assertNotNull(statusReport.getSubject()); assertEquals(subject, statusReport.getSubject()); assertEquals(subject, statusReport.getSubject()); }