Package org.eclipse.egit.ui.internal.commit

Examples of org.eclipse.egit.ui.internal.commit.CommitEditorInputFactory


  public void shouldPersistAndRestoreCommit() {
    RepositoryCommit repositoryCommit = new RepositoryCommit(
        repository, commit);

    new CommitEditorInput(repositoryCommit).saveState(memento);
    IAdaptable restored = new CommitEditorInputFactory()
        .createElement(memento);

    assertNotNull(restored);
    assertThat(restored, instanceOf(CommitEditorInput.class));
    assertThat(repositoryCommit,
View Full Code Here


    RepositoryCommit stashCommit = new RepositoryCommit(
        repository, commit);
    stashCommit.setStash(true);

    new CommitEditorInput(stashCommit).saveState(memento);
    IAdaptable restored = new CommitEditorInputFactory()
        .createElement(memento);

    assertNotNull(restored);
    assertThat(restored, instanceOf(CommitEditorInput.class));
    assertThat(stashCommit,
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.commit.CommitEditorInputFactory

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.