Search in sources :

Example 1 with CEventListTableModel

use of com.google.security.zynamics.binnavi.Gui.Debug.EventLists.CEventListTableModel in project binnavi by google.

the class CEventListTableModelTest method test2056.

/**
   * This test makes sure that the listener issue described in Case 2056 does not happen again.
   * 
   * @throws CouldntLoadDataException
   * @throws LoadCancelledException
   * @throws CouldntSaveDataException
   */
@Test
public void test2056() throws CouldntLoadDataException, LoadCancelledException, CouldntSaveDataException {
    final INaviModule module = new MockModule(false);
    module.getContent().getTraceContainer().createTrace("foo", "bar");
    final ITraceListProvider traceListProvider = new ModuleTraceProvider(module);
    final CEventListTableModel model = new CEventListTableModel(traceListProvider);
    module.load();
    model.delete();
}
Also used : INaviModule(com.google.security.zynamics.binnavi.disassembly.INaviModule) MockModule(com.google.security.zynamics.binnavi.disassembly.Modules.MockModule) ITraceListProvider(com.google.security.zynamics.binnavi.debug.models.trace.interfaces.ITraceListProvider) ModuleTraceProvider(com.google.security.zynamics.binnavi.debug.models.trace.ModuleTraceProvider) CEventListTableModel(com.google.security.zynamics.binnavi.Gui.Debug.EventLists.CEventListTableModel) Test(org.junit.Test)

Aggregations

CEventListTableModel (com.google.security.zynamics.binnavi.Gui.Debug.EventLists.CEventListTableModel)1 ModuleTraceProvider (com.google.security.zynamics.binnavi.debug.models.trace.ModuleTraceProvider)1 ITraceListProvider (com.google.security.zynamics.binnavi.debug.models.trace.interfaces.ITraceListProvider)1 INaviModule (com.google.security.zynamics.binnavi.disassembly.INaviModule)1 MockModule (com.google.security.zynamics.binnavi.disassembly.Modules.MockModule)1 Test (org.junit.Test)1