2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 1997-2002
5
* Sleepycat Software. All rights reserved.
11
* Simple test for get/put of specific values.
14
package com.sleepycat.test;
16
import com.sleepycat.db.*;
17
import java.io.FileNotFoundException;
19
public class TestSimpleAccess
21
public static void main(String[] args)
24
Db db = new Db(null, 0);
25
db.open(null, "my.db", null, Db.DB_BTREE, Db.DB_CREATE, 0644);
27
TestUtil.populate(db);
28
System.out.println("finished test");
30
catch (DbException dbe) {
31
System.err.println("Db Exception: " + dbe);
33
catch (FileNotFoundException fnfe) {
34
System.err.println("FileNotFoundException: " + fnfe);