Update TestResultAction.java

Moving getFinished to a method