Error in Java 102 lesson? (testing workflows)

I may be mistaken but I think I’m looking at an error in example code in the “Testing Workflows” lesson of the Java 102 course.

@WorkflowInterface
public interface SumOfSquaresWorkflowImpl{

        @WorkflowMethod
        int calculateSumOfSquares(int first, int second);
}

public class SumOfSquaresWorkflowImpl implements SumOfSquaresWorkflow {

Should the name of the interface be SumOfSquaresWorkflow rather than SumOfSquaresWorkflowImpl?

Hi Adam,

Thank you for reporting this.

I can confirm that you’re correct—the interface in the code sample incorrectly used the name of the implementation class. The interface should have been called SumOfSquaresWorkflow, as you suggested. I have updated the course to correct this.

Thanks again,

Tom Wheeler