use of org.eclipse.egit.ui.internal.synchronize.model.GitModelTree in project egit by eclipse.
the class GitChangeSetSorterTest method treeShouldBeLessThanBlob.
@Test
public void treeShouldBeLessThanBlob() {
// given
Viewer viewer = mock(Viewer.class);
GitChangeSetSorter sorter = new GitChangeSetSorter();
GitModelTree tree = mock(GitModelTree.class);
GitModelBlob blob = mock(GitModelBlob.class);
// when
int actual = sorter.compare(viewer, tree, blob);
// then
assertTrue(actual < 0);
}
use of org.eclipse.egit.ui.internal.synchronize.model.GitModelTree in project egit by eclipse.
the class GitChangeSetSorterTest method treeShouldBeGreaterThanWorkingTree.
/*
* Tests for GitModelTree
*/
@Test
public void treeShouldBeGreaterThanWorkingTree() {
// given
Viewer viewer = mock(Viewer.class);
GitChangeSetSorter sorter = new GitChangeSetSorter();
GitModelTree tree = mock(GitModelTree.class);
GitModelWorkingTree workingTree = mock(GitModelWorkingTree.class);
// when
int actual = sorter.compare(viewer, tree, workingTree);
// then
assertTrue(actual > 0);
}
Aggregations