Search in sources :

Example 1 with BugTrackerResource

use of org.ligoj.app.resource.node.sample.BugTrackerResource in project ligoj-api by ligoj.

the class ServicePluginLocatorTest method getResourceTypeParent.

@Test
public void getResourceTypeParent() {
    final ConfigurablePlugin resource = component.getResource(JiraBaseResource.KEY + ":any", ConfigurablePlugin.class);
    Assertions.assertNotNull(resource);
    Assertions.assertTrue(resource instanceof BugTrackerResource);
}
Also used : ConfigurablePlugin(org.ligoj.app.api.ConfigurablePlugin) BugTrackerResource(org.ligoj.app.resource.node.sample.BugTrackerResource) AbstractAppTest(org.ligoj.app.AbstractAppTest) Test(org.junit.jupiter.api.Test)

Example 2 with BugTrackerResource

use of org.ligoj.app.resource.node.sample.BugTrackerResource in project ligoj-api by ligoj.

the class ServicePluginLocatorTest method getResourceType.

@Test
public void getResourceType() {
    final ConfigurablePlugin resource = component.getResource(JiraBaseResource.KEY, ConfigurablePlugin.class);
    Assertions.assertNotNull(resource);
    Assertions.assertTrue(resource instanceof BugTrackerResource);
}
Also used : ConfigurablePlugin(org.ligoj.app.api.ConfigurablePlugin) BugTrackerResource(org.ligoj.app.resource.node.sample.BugTrackerResource) AbstractAppTest(org.ligoj.app.AbstractAppTest) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)2 AbstractAppTest (org.ligoj.app.AbstractAppTest)2 ConfigurablePlugin (org.ligoj.app.api.ConfigurablePlugin)2 BugTrackerResource (org.ligoj.app.resource.node.sample.BugTrackerResource)2