Category.DATE,
Category.LAUNCH_TYPE,
Category.LAUNCH_MODE,
Category.LAUNCH};
// Expected paths following the order of the categories:
TreePath base = newPath(ws, date, type, mode, launch);
TreePath p1 = base.createChildPath(count);
TreePath p2 = base.createChildPath(duration);
TreePath p3 = base
.createChildPath(fileHasParent.getProject())
.createChildPath(fileHasParent.getParent())
.createChildPath(fileHasParent);
TreePath p4 = base
.createChildPath(fileHasNoParent.getProject())
.createChildPath(fileHasNoParent);
// A new data node with no files:
ILaunchData dataNode2 = mock(ILaunchData.class);
given(dataNode2.get(ILaunchData.COUNT)).willReturn(count);
given(dataNode2.get(ILaunchData.DATE)).willReturn(date);
given(dataNode2.get(ILaunchData.DURATION)).willReturn(duration);
given(dataNode2.get(ILaunchData.LAUNCH_CONFIG)).willReturn(configDes);
given(dataNode2.get(ILaunchData.WORKSPACE)).willReturn(ws);
given(dataNode2.get(ILaunchData.FILES)).willReturn(
Collections.<IFile> emptySet());
// Paths for the new data node:
TreePath p5 = base.createChildPath(count);
TreePath p6 = base.createChildPath(duration);
// Mocks:
ILaunchDataProvider input = mock(ILaunchDataProvider.class);
given(input.get()).willReturn(Arrays.asList(dataNode, dataNode2));
ICategoryProvider provider = mock(ICategoryProvider.class);