use of au.gov.asd.tac.constellation.graph.GraphReadMethods in project constellation by constellation-app.
the class IntegerAttributeDescriptionNGTest method testCopy.
/**
* Test of copy method, of class IntegerAttributeDescription.
*/
@Test
public void testCopy() {
GraphReadMethods graph = new StoreGraph();
AttributeDescription expResult = instance;
AttributeDescription result = instance.copy(graph);
assertEquals(result.getInt(0), expResult.getInt(0));
}
use of au.gov.asd.tac.constellation.graph.GraphReadMethods in project constellation by constellation-app.
the class LongAttributeDescriptionNGTest method testCopy.
/**
* Test of copy method, of class LongAttributeDescription.
*/
@Test
public void testCopy() {
GraphReadMethods graph = new StoreGraph();
AttributeDescription expResult = instance;
AttributeDescription result = instance.copy(graph);
assertEquals(result.getLong(0), expResult.getLong(0));
}
use of au.gov.asd.tac.constellation.graph.GraphReadMethods in project constellation by constellation-app.
the class BooleanAttributeDescriptionNGTest method testCopy.
/**
* Test of copy method, of class BooleanAttributeDescription.
*/
@Test
public void testCopy() {
GraphReadMethods graph = new StoreGraph();
AttributeDescription expResult = instance;
AttributeDescription result = instance.copy(graph);
assertEquals(result.getBoolean(0), expResult.getBoolean(0));
}
use of au.gov.asd.tac.constellation.graph.GraphReadMethods in project constellation by constellation-app.
the class DefaultPluginEnvironmentNGTest method testExecuteReadPluginNowThrowsRuntimeException.
@Test(expectedExceptions = RuntimeException.class)
public void testExecuteReadPluginNowThrowsRuntimeException() throws Exception {
System.out.println("executeReadPluginNow");
GraphReadMethods graph = mock(GraphReadMethods.class);
Plugin plugin = mock(Plugin.class);
PluginParameters parameters = mock(PluginParameters.class);
RuntimeException runtimeException = mock(RuntimeException.class);
boolean interactive = false;
DefaultPluginEnvironment instance = new DefaultPluginEnvironment();
doThrow(runtimeException).when(plugin).run(any(GraphReadMethods.class), any(PluginInteraction.class), any(PluginParameters.class));
instance.executeReadPluginNow(graph, plugin, parameters, interactive);
}
use of au.gov.asd.tac.constellation.graph.GraphReadMethods in project constellation by constellation-app.
the class StringAttributeDescriptionNGTest method testCopy.
/**
* Test of copy method, of class StringAttributeDescription.
*/
@Test
public void testCopy() {
GraphReadMethods graph = new StoreGraph();
AttributeDescription expResult = instance;
AttributeDescription result = instance.copy(graph);
assertEquals(result.getString(0), expResult.getString(0));
}
Aggregations