@Test public void applySpecificStash_theCorrespondingStashedChangesShouldAppearInTheFileSystem() throws IOException { byte[] expected = someBytes(); writeToGfs("/test_file.txt", expected); createStash(gfs).execute(); reset(gfs).execute(); writeSomethingToGfs(); createStash(gfs).execute(); reset(gfs).execute(); Result result = applyStash(gfs).stash(1).execute(); assertTrue(result.isSuccessful()); assertArrayEquals(expected, readAllBytes(gfs.getPath("/test_file.txt"))); }
@Nonnull public GfsApplyStash stash(String id) throws IOException { this.stashId = id; return this; }
GfsApplyStash extends GfsCommand<GfsApplyStash.Result> { @Nonnull public GfsApplyStash stash(String id) throws IOException { this.stashId = id; return this; } }
GfsApplyStash extends GfsCommand<GfsApplyStash.Result> { @Nonnull public GfsApplyStash stash(String id) throws IOException { this.stashId = id; return this; } GfsApplyStash(GitFileSystem gfs); }
GfsApplyStash extends GfsCommand<GfsApplyStash.Result> { @Nonnull public GfsApplyStash stash(String id) throws IOException { this.stashId = id; return this; } GfsApplyStash(GitFileSystem gfs); @Nonnull GfsApplyStash stash(String id); @Nonnull GfsApplyStash stash(int id); }
GfsApplyStash extends GfsCommand<GfsApplyStash.Result> { @Nonnull public GfsApplyStash stash(String id) throws IOException { this.stashId = id; return this; } GfsApplyStash(GitFileSystem gfs); @Nonnull GfsApplyStash stash(String id); @Nonnull GfsApplyStash stash(int id);  }