Esempio n. 1
0
  public void test2() {
    OdbClassOID oid = new OdbClassOID(10002);
    String soid = oid.oidToString();

    OID oid2 = OIDFactory.oidFromString(soid);

    assertEquals(oid, oid2);
  }
Esempio n. 2
0
  public void test4() {
    String baseName = getBaseName();
    ODB odb = open(baseName);
    ExternalClassOID oid = new ExternalClassOID(new OdbClassOID(19), odb.ext().getDatabaseId());
    String soid = oid.oidToString();

    OID oid2 = OIDFactory.oidFromString(soid);

    assertEquals(oid, oid2);
  }
Esempio n. 3
0
  public void test1() {
    String baseName = getBaseName();
    ODB odb = open(baseName);
    OID oid = odb.store(new Function("My Function"));
    odb.close();
    IOUtil.deleteFile(baseName);
    String soid = oid.oidToString();

    OID oid2 = OIDFactory.oidFromString(soid);

    assertEquals(oid, oid2);
  }