use of org.thingsboard.server.common.data.plugin.ComponentType in project thingsboard by thingsboard.
the class BaseComponentDescriptorControllerTest method testGetByType.
@Test
public void testGetByType() throws Exception {
List<ComponentDescriptor> descriptors = readResponse(doGet("/api/components/" + ComponentType.PLUGIN).andExpect(status().isOk()), new TypeReference<List<ComponentDescriptor>>() {
});
Assert.assertNotNull(descriptors);
Assert.assertEquals(AMOUNT_OF_DEFAULT_PLUGINS_DESCRIPTORS, descriptors.size());
for (ComponentType type : ComponentType.values()) {
doGet("/api/components/" + type).andExpect(status().isOk());
}
}
Aggregations