use of com.sequenceiq.cloudbreak.orchestrator.yarn.model.core.YarnComponent in project cloudbreak by hortonworks.
the class ComponentTest method testName.
@Test
public void testName() {
YarnComponent component = new YarnComponent();
component.setName(NAME);
assertEquals(NAME, component.getName());
}
use of com.sequenceiq.cloudbreak.orchestrator.yarn.model.core.YarnComponent in project cloudbreak by hortonworks.
the class CreateApplicationRequestTest method testComponents.
@Test
public void testComponents() throws Exception {
YarnComponent component = new YarnComponent();
CreateApplicationRequest createApplicationRequest = new CreateApplicationRequest();
List<YarnComponent> components = new ArrayList<>();
components.add(component);
createApplicationRequest.setComponents(components);
assertEquals(1, createApplicationRequest.getComponents().size());
}
Aggregations