import vtk.*;

public class Regression 
{
  public static void main (String []args) 
    {
    vtkTesting.Initialize(args);

    vtkRenderWindow renWin = new vtkRenderWindow();
    vtkRenderer ren1 = new vtkRenderer();
    renWin.AddRenderer(ren1);
    vtkConeSource cone = new vtkConeSource();
    cone.SetResolution(8);
    vtkPolyDataMapper coneMapper = new vtkPolyDataMapper();
    coneMapper.SetInput(cone.GetOutput());

    vtkActor coneActor = new vtkActor();
    coneActor.SetMapper(coneMapper);

    ren1.AddActor(coneActor);
    renWin.Render();

    vtkTesting.RegressionTestImage(renWin, args);
    }
}


@@ -1,8 +1,666 @@
+/*=========================================================================%0A%0A  Program:   Visualization Toolkit%0A  Module:    Regression.java%0A  Language:  C++%0A  Date:      $Date$%0A  Version:   $Revision$%0A%0A  Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen %0A  All rights reserved.%0A  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.%0A%0A     This software is distributed WITHOUT ANY WARRANTY; without even %0A     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR %0A     PURPOSE.  See the above copyright notice for more information.%0A%0A=========================================================================*/%0A
 import v
@@ -900,16 +900,120 @@
 (ren1);%0A
+    vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();%0A    iren.SetRenderWindow(renWin);%0A
     vtkC
@@ -1311,24 +1311,37 @@
 nder();%0A%0A   
+ int retVal =
  vtkTesting.
@@ -1372,16 +1372,127 @@
 in, args
+, 10);%0A    if ( retVal == vtkTesting.DO_INTERACTOR )%0A      %7B%0A      iren.Start();%0A      %7D%0A    System.exit(retVal
 );%0A    %7D

Send threshold to vtkTesting, add interaction support, and return what vtktesting returns