Commit 50919dff authored by Robert Smith's avatar Robert Smith
Browse files

Fixed failing test



AbstractControllerTester was failing due to an incorrect use of
Representation. Updated it so that it passes.
Signed-off-by: Robert Smith's avatarRobert Smith <SmithRW@ornl.gov>
parent ef525f54
......@@ -26,6 +26,7 @@ import org.eclipse.eavp.viz.service.modeling.AbstractView;
import org.eclipse.eavp.viz.service.modeling.IController;
import org.eclipse.eavp.viz.service.modeling.MeshCategory;
import org.eclipse.eavp.viz.service.modeling.MeshProperty;
import org.eclipse.eavp.viz.service.modeling.Representation;
import org.eclipse.eavp.viz.service.modeling.Transformation;
import org.eclipse.eavp.viz.service.modeling.test.utils.TestController;
import org.eclipse.eavp.viz.service.modeling.test.utils.TestMesh;
......@@ -33,6 +34,8 @@ import org.eclipse.eavp.viz.service.modeling.test.utils.TestView;
import org.junit.Before;
import org.junit.Test;
import javafx.scene.Group;
/**
* A test class for the AbstractController
*
......@@ -248,10 +251,10 @@ public class AbstractControllerTester {
public void testGetRepresentation() {
// Get the representation from the TestView
Object representation = controller.getRepresentation();
Representation<VizObject> representation = controller.getRepresentation();
// The representation should be a TestObject
assertTrue(representation instanceof VizObject);
assertTrue(representation.getData() instanceof VizObject);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment