Search in sources :

Example 6 with CCrossReference

use of com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReference in project binnavi by google.

the class CCrossReferencesModelTest method test3getCoulmName.

@Test
public void test3getCoulmName() {
    final CCrossReferencesModel model = new CCrossReferencesModel();
    final CCrossReference reference = new CCrossReference(new MockFunction(), new MockFunction());
    final List<CCrossReference> crossReferences = new ArrayList<CCrossReference>();
    crossReferences.add(reference);
    model.setCrossReferences(crossReferences);
    assertEquals("Called Function", model.getColumnName(0));
    assertEquals("Calling Function", model.getColumnName(1));
}
Also used : CCrossReference(com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReference) MockFunction(com.google.security.zynamics.binnavi.disassembly.MockFunction) ArrayList(java.util.ArrayList) CCrossReferencesModel(com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReferencesModel) Test(org.junit.Test)

Example 7 with CCrossReference

use of com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReference in project binnavi by google.

the class CCrossReferencesModelTest method test2GetColumnCount.

@Test
public void test2GetColumnCount() {
    final CCrossReferencesModel model = new CCrossReferencesModel();
    final CCrossReference reference = new CCrossReference(new MockFunction(), new MockFunction());
    final List<CCrossReference> crossReferences = new ArrayList<CCrossReference>();
    crossReferences.add(reference);
    model.setCrossReferences(crossReferences);
    assertEquals(2, model.getColumnCount());
}
Also used : CCrossReference(com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReference) MockFunction(com.google.security.zynamics.binnavi.disassembly.MockFunction) ArrayList(java.util.ArrayList) CCrossReferencesModel(com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReferencesModel) Test(org.junit.Test)

Aggregations

CCrossReference (com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReference)7 MockFunction (com.google.security.zynamics.binnavi.disassembly.MockFunction)7 Test (org.junit.Test)7 CCrossReferencesModel (com.google.security.zynamics.binnavi.Gui.GraphWindows.BottomPanel.CrossReferences.CCrossReferencesModel)5 ArrayList (java.util.ArrayList)5