Search in sources :

Example 1 with CThreadInformationTable

use of com.google.security.zynamics.binnavi.Gui.Debug.ThreadInformationPanel.CThreadInformationTable in project binnavi by google.

the class CThreadInformationTableTest method test.

@Test
public void test() {
    final CThreadInformationTable table = new CThreadInformationTable();
    final TargetProcessThread thread = new TargetProcessThread(0, ThreadState.RUNNING);
    assertEquals(0, table.getModel().getRowCount());
    table.getModel().addThread(thread);
    assertEquals(1, table.getModel().getRowCount());
    for (int column = 0; column < table.getModel().getColumnCount(); column++) {
        table.getModel().getValueAt(0, column);
    }
    table.getModel().removeThread(thread);
    assertEquals(0, table.getModel().getRowCount());
    table.getModel().reset();
}
Also used : CThreadInformationTable(com.google.security.zynamics.binnavi.Gui.Debug.ThreadInformationPanel.CThreadInformationTable) TargetProcessThread(com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread) Test(org.junit.Test)

Aggregations

CThreadInformationTable (com.google.security.zynamics.binnavi.Gui.Debug.ThreadInformationPanel.CThreadInformationTable)1 TargetProcessThread (com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread)1 Test (org.junit.Test)1