Ejemplo n.º 1
0
  @Before
  public void setUp() {
    super.setUp();

    when(projectDescriptor.getPath()).thenReturn(ITEM_PATH);
    when(projectDescriptor.getName()).thenReturn(ITEM_NAME);
    when(projectDescriptor.getType()).thenReturn(PROJECT_TYPE_ID);

    Array<TreeNode<?>> children = Collections.createArray();
    when(parentProjectNode.getChildren()).thenReturn(children);
  }
Ejemplo n.º 2
0
 @Test
 public void shouldReturnProjectTypeId() throws Exception {
   assertEquals(projectDescriptor.getType(), projectNode.getProjectTypeId());
 }