use of org.apache.ignite.spi.deployment.DeploymentResource in project ignite by apache.
the class GridUriDeploymentSimpleSelfTest method testSimpleDeployWithName.
/**
* @throws Exception If failed.
*/
public void testSimpleDeployWithName() throws Exception {
UriDeploymentSpi spi = getSpi();
spi.register(TestTaskWithName.class.getClassLoader(), TestTaskWithName.class);
DeploymentResource task = spi.findResource("TestTaskWithName");
assert task != null;
assert task.getResourceClass() == TestTaskWithName.class;
assert spi.findResource(TestTaskWithName.class.getName()) != null;
spi.unregister("TestTaskWithName");
assert spi.findResource("TestTaskWithName") == null;
}
Aggregations