本文整理汇总了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);
}
示例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;
}
示例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);
}
}
示例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();
}
示例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();
}
示例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);
}