예제 #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);
  }
예제 #2
0
 @Test
 public void shouldReturnProjectTypeId() throws Exception {
   assertEquals(projectDescriptor.getType(), projectNode.getProjectTypeId());
 }