本文整理汇总了Java中simpledb.TestUtil.SkeletonFile类的典型用法代码示例。如果您正苦于以下问题:Java SkeletonFile类的具体用法?Java SkeletonFile怎么用?Java SkeletonFile使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SkeletonFile类属于simpledb.TestUtil包,在下文中一共展示了SkeletonFile类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleDuplicateIds
import simpledb.TestUtil.SkeletonFile; //导入依赖的package包/类
/**
* Check that duplicate file ids are handled correctly
*/
@Test public void handleDuplicateIds() throws Exception {
String newName = SystemTestUtil.getUUID();
DbFile f = new SkeletonFile(id2, Utility.getTupleDesc(2));
Database.getCatalog().addTable(f, newName);
assertEquals(newName, Database.getCatalog().getTableName(id2));
assertEquals(f, Database.getCatalog().getDatabaseFile(id2));
}
示例2: addTable
import simpledb.TestUtil.SkeletonFile; //导入依赖的package包/类
/**
* Set up initial resources for each unit test.
*/
@Before public void addTable() throws Exception {
this.pid = new HeapPageId(-1, -1);
Database.getCatalog().addTable(new SkeletonFile(-1, Utility.getTupleDesc(2)), SystemTestUtil.getUUID());
}
示例3: addTables
import simpledb.TestUtil.SkeletonFile; //导入依赖的package包/类
@Before public void addTables() throws Exception {
Database.getCatalog().clear();
nameThisTestRun = SystemTestUtil.getUUID();
Database.getCatalog().addTable(new SkeletonFile(id1, Utility.getTupleDesc(2)), nameThisTestRun);
Database.getCatalog().addTable(new SkeletonFile(id2, Utility.getTupleDesc(2)), name);
}
示例4: handleDuplicateNames
import simpledb.TestUtil.SkeletonFile; //导入依赖的package包/类
/**
* Check that duplicate names are handled correctly
*/
@Test public void handleDuplicateNames() throws Exception {
int id3 = r.nextInt();
Database.getCatalog().addTable(new SkeletonFile(id3, Utility.getTupleDesc(2)), name);
assertEquals(id3, Database.getCatalog().getTableId(name));
}
示例5: addTable
import simpledb.TestUtil.SkeletonFile; //导入依赖的package包/类
/**
* Set up initial resources for each unit test.
*/
@Before public void addTable() throws IOException {
this.pid = new HeapPageId(-1, -1);
Database.getCatalog().addTable(new SkeletonFile(-1, Utility.getTupleDesc(2)), SystemTestUtil.getUUID());
}
示例6: addTables
import simpledb.TestUtil.SkeletonFile; //导入依赖的package包/类
@Before public void addTables() throws Exception {
Database.getCatalog().clear();
nameThisTestRun = SystemTestUtil.getUUID();
Database.getCatalog().addTable(new SkeletonFile(-1, Utility.getTupleDesc(2)), nameThisTestRun);
Database.getCatalog().addTable(new SkeletonFile(-2, Utility.getTupleDesc(2)), name);
}