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