示例#1
0
  public static void main(String[] args) {
    Const.setDefaultErrorReporter();

    System.out.println("Clock test start");
    TestSuite suite = new TestSuite();

    // suite.addTest(test_Clock);
    suite.addTest(test_RealtimeClock);

    suite.run(result);

    printResult();
  }
示例#2
0
  public static void main(String[] args) {
    Const.setDefaultErrorReporter();

    TestSuite suite = new TestSuite();

    //    suite.addTest(test_Account);
    suite.addTest(test_AccountStub);
    //    suite.addTest(test_ConcreteAccount);

    suite.run(result);

    printResult();
  }
  public static void main(String[] args) {
    Const.setDefaultErrorReporter();

    TestSuite suite = new TestSuite();
    TestResult result = new TestResult();

    int numberOfCases = TestStorageParameters.testCount;
    TestCase test = new TestStorageParameters(result, numberOfCases);

    suite.addTest(test);
    suite.run(result);
    result.print(test.getClass().getName(), numberOfCases);

    if (result.JMLerrorCount() + result.errorCount() == 0) {
      args = null;
    }
  }
  public static void main(String[] args) {
    Memory memory = Memory.getHeapArea();
    new SmallObject();
    int x = memory.consumedMemory();
    new SmallObject();
    int y = memory.consumedMemory();
    sizeOfSmallObject = y - x;

    x = memory.consumedMemory();
    new BiggerObject();
    y = memory.consumedMemory();
    sizeOfBiggerObject = y - x;

    devices.Console.println("small object is " + sizeOfSmallObject + " bytes");
    devices.Console.println("bigger object is " + sizeOfBiggerObject + " bytes");

    Const.setDefaultErrorReporter();
    vm.Memory.startMemoryAreaTracking();

    storageParameters_Sequencer =
        new StorageParameters(
            Const.OUTERMOST_SEQ_BACKING_STORE,
            Const.PRIVATE_MEM,
            Const.IMMORTAL_MEM,
            Const.MISSION_MEM);

    storageParameters_Handlers = new StorageParameters(Const.PRIVATE_BACKING_STORE, 2002, 0, 0);

    configParameters =
        new ConfigurationParameters(null, -1, -1, new long[] {Const.HANDLER_STACK_SIZE});

    devices.Console.println("\n********** TestSCJThreadMemory main.begin ******************");
    new LaunchLevel2(new MyApp());
    devices.Console.println("********* TestSCJThreadMemory main.end ********************");
    if (!fail) {
      args = null;
    }
  }