void () { VirtualFileGist<Integer> gist = gistReturningCalculationsCount(); VirtualFile file = fileWithContent("a.txt", "foo bar"); assertEquals( "Gist evaluated only once on a same unchanged file", Integer.valueOf(1), gist.getFileData(getProject(), file) ); assertEquals( "Gist evaluated only once on a same unchanged file", Integer.valueOf(1), gist.getFileData(getProject(), file) ); assertEquals( "Gist re-evaluated on another file", Integer.valueOf(2), gist.getFileData(getProject(), fileWithContent("b.txt", "")) ); }