Package org.eclipse.egit.ui.internal.synchronize.model

Examples of org.eclipse.egit.ui.internal.synchronize.model.GitModelCache


   */
  @Test public void workingTreeShouldBeLessThanCacheTree() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelCache cache = mock(GitModelCache.class);
    GitModelWorkingTree workingTree = mock(GitModelWorkingTree.class);

    // when
    int actual = sorter.compare(viewer, workingTree, cache);

View Full Code Here


   */
  @Test public void cacheTreeShouldBeGreaterThanWorkingTree() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelCache cache = mock(GitModelCache.class);
    GitModelWorkingTree workingTree = mock(GitModelWorkingTree.class);

    // when
    int actual = sorter.compare(viewer, cache, workingTree);

View Full Code Here

  @Test public void cacheTreeShouldBeLessThanCommit() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelCache cache = mock(GitModelCache.class);
    GitModelCommit commit = mock(GitModelCommit.class);

    // when
    int actual = sorter.compare(viewer, cache, commit);
View Full Code Here

  @Test public void cacheTreeShouldBeLessThanTree() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelCache cache = mock(GitModelCache.class);
    GitModelTree tree = mock(GitModelTree.class);

    // when
    int actual = sorter.compare(viewer, cache, tree);
View Full Code Here

  @Test public void cacheTreeShouldBeLessThanBlob() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelCache cache = mock(GitModelCache.class);
    GitModelBlob blob = mock(GitModelBlob.class);

    // when
    int actual = sorter.compare(viewer, cache, blob);
View Full Code Here

  @Test public void commitTreeShouldBeGreaterThanCache() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelCommit commit = mock(GitModelCommit.class);
    GitModelCache cache = mock(GitModelCache.class);

    // when
    int actual = sorter.compare(viewer, commit, cache);

    // then
View Full Code Here

  @Test public void treeShouldBeGreaterThanCache() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelTree tree = mock(GitModelTree.class);
    GitModelCache cache = mock(GitModelCache.class);

    // when
    int actual = sorter.compare(viewer, tree, cache);

    // then
View Full Code Here

  @Test public void blobShouldBeGreaterThanCache() {
    // given
    Viewer viewer = mock(Viewer.class);
    GitChangeSetSorter sorter = new GitChangeSetSorter();
    GitModelBlob blob = mock(GitModelBlob.class);
    GitModelCache cache = mock(GitModelCache.class);

    // when
    int actual = sorter.compare(viewer, blob, cache);

    // then
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.synchronize.model.GitModelCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.