当前位置: 首页>>代码示例>>Java>>正文


Java VM.setManifestProperty方法代码示例

本文整理汇总了Java中com.sun.squawk.VM.setManifestProperty方法的典型用法代码示例。如果您正苦于以下问题:Java VM.setManifestProperty方法的具体用法?Java VM.setManifestProperty怎么用?Java VM.setManifestProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.squawk.VM的用法示例。


在下文中一共展示了VM.setManifestProperty方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import com.sun.squawk.VM; //导入方法依赖的package包/类
public void setUp() throws Exception {
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, "name");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, "vendor");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, "version");
    final INorFlashSectorState[] sectors = new INorFlashSectorState[2];
    sectors[0] = mock(INorFlashSectorState.class, "sector-0");
    manager = new RecordStoreManager();
    visitor = new RecordStoreManagerScanVisitor(manager);
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:10,代码来源:RecordStoreManagerScanVisitorTest.java

示例2: setUp

import com.sun.squawk.VM; //导入方法依赖的package包/类
public void setUp() throws Exception {
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, "name");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, "vendor");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, "version");
    final INorFlashSectorState[] sectors = new INorFlashSectorState[2];
    sectors[0] = mock(INorFlashSectorState.class, "sector-0");
    castManager = new RecordStoreManager();
    manager = castManager;
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:10,代码来源:RecordStoreManagerTest.java

示例3: testGetRecordStoreManager2

import com.sun.squawk.VM; //导入方法依赖的package包/类
public void testGetRecordStoreManager2() {
    
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, "name");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, "vendor");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, "version");
    try {
        ImpGlobal.getRecordStoreManager();
    } catch (RecordStoreException e) {
        fail();
    } finally {
        VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, null);
        VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, null);
        VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, null);
    }
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:16,代码来源:ImpGlobalTest.java

示例4: setUpIntegrationTests

import com.sun.squawk.VM; //导入方法依赖的package包/类
public static void setUpIntegrationTests(boolean setup, boolean useFiles) {
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, "name");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, "vendor");
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, "version");
    final int sectorSize = 65536;
    if (setup) {
        SimulatedNorFlashSectorAllocator.getSingleton().setupSectors(numSectors, sectorSize, INorFlashSector.RMS_PURPOSED, useFiles);
    } else {
        SimulatedNorFlashSectorAllocator.getSingleton().installSectors(numSectors, sectorSize, INorFlashSector.RMS_PURPOSED);
    }
    ImpGlobal.resetRecordStoreManager();
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:13,代码来源:RecordStoreIntegrationTest.java

示例5: tearDownIntegrationTests

import com.sun.squawk.VM; //导入方法依赖的package包/类
public static void tearDownIntegrationTests() {
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, null);
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, null);
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, null);
    SimulatedNorFlashSectorAllocator.resetSingleton();
    ImpGlobal.resetRecordStoreManager();
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:8,代码来源:RecordStoreIntegrationTest.java

示例6: tearDown

import com.sun.squawk.VM; //导入方法依赖的package包/类
public void tearDown() throws Exception {
    manager = null;
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_NAME, null);
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VENDOR, null);
    VM.setManifestProperty(ApplicationDescriptorEntry.PROPERTY_MIDLET_VERSION, null);
}
 
开发者ID:tomatsu,项目名称:squawk,代码行数:7,代码来源:RecordStoreManagerScanVisitorTest.java


注:本文中的com.sun.squawk.VM.setManifestProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。