Search in sources :

Example 6 with RawTypeInstance

use of com.google.security.zynamics.binnavi.disassembly.types.RawTypeInstance in project binnavi by google.

the class PostgreSQLTypeInstanceFunctionsTests method loadSingleTypeInstanceTest3.

@Test
public void loadSingleTypeInstanceTest3() throws CouldntLoadDataException, LoadCancelledException {
    module.load();
    final TypeInstance typeInstance = module.getContent().getTypeInstanceContainer().getTypeInstances().get(0);
    final RawTypeInstance rawTypeInstance = provider.loadTypeInstance(module, typeInstance.getId());
    Assert.assertEquals(typeInstance.getId(), rawTypeInstance.getId());
    Assert.assertEquals(typeInstance.getBaseType().getId(), rawTypeInstance.getTypeId());
}
Also used : RawTypeInstance(com.google.security.zynamics.binnavi.disassembly.types.RawTypeInstance) RawTypeInstance(com.google.security.zynamics.binnavi.disassembly.types.RawTypeInstance) TypeInstance(com.google.security.zynamics.binnavi.disassembly.types.TypeInstance) Test(org.junit.Test)

Aggregations

RawTypeInstance (com.google.security.zynamics.binnavi.disassembly.types.RawTypeInstance)6 CouldntLoadDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException)2 PreparedStatement (java.sql.PreparedStatement)2 ResultSet (java.sql.ResultSet)2 SQLException (java.sql.SQLException)2 TypeInstance (com.google.security.zynamics.binnavi.disassembly.types.TypeInstance)1 BigInteger (java.math.BigInteger)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1