List of usage examples for com.intellij.openapi.diff DiffContent getBytes
public abstract byte[] getBytes() throws IOException;
From source file:com.intellij.history.integration.ui.FileHistoryDialogTest.java
License:Apache License
private void assertDiffContents(String leftContent, String rightContent, FileHistoryDialogModel m) throws IOException { DiffContent left = getLeftDiffContent(m); DiffContent right = getRightDiffContent(m); assertEquals(leftContent, new String(left.getBytes())); assertEquals(rightContent, new String(right.getBytes())); }
From source file:com.intellij.history.integration.ui.SelectionHistoryDialogTest.java
License:Apache License
public void testDiffContents() throws IOException { initModelOnSecondLineAndSelectRevisions(0, 1); DiffContent left = dm.getLeftDiffContent(new NullRevisionsProgress()); DiffContent right = dm.getRightDiffContent(new NullRevisionsProgress()); assertEquals("b", new String(left.getBytes())); assertEquals("bc", new String(right.getBytes())); }
From source file:com.intellij.history.integration.ui.SelectionHistoryDialogTest.java
License:Apache License
public void testDiffContentsAndTitleForCurrentRevision() throws IOException { initModelOnSecondLineAndSelectRevisions(0, 0); assertEquals("Current", dm.getRightTitle(new NullRevisionsProgress())); DiffContent right = dm.getRightDiffContent(new NullRevisionsProgress()); assertEquals("bcd", new String(right.getBytes())); assertTrue(right instanceof FragmentContent); }