Package org.jamesii.core.data.runtime

Examples of org.jamesii.core.data.runtime.IWriteReadDataStorage.writeData()


    } catch (DataStorageException expected) {
    }

    // this should throw an Exception, that no ExpId has been set:
    try {
      bns.writeData(42, "bla", 13.37, "zweiundvierzig");
      fail("ExpID hast to be set before.");
    } catch (DataStorageException expected) {
    }

    // this should throw an Exception, that no SimId has been set:
View Full Code Here


    }

    // this should throw an Exception, that no SimId has been set:
    try {
      bns.setExperimentID(UniqueIDGenerator.createUniqueID());
      bns.writeData(42, "bla", 13.37, "zweiundvierzig");
      fail("SimID has to be set before.");
    } catch (DataStorageException expected) {
    }

    // this should throw an Exception, that no SimId has been set:
View Full Code Here

    }

    // this should throw an Exception, that no SimId has been set:
    try {
      bns.setConfigurationID(null, UniqueIDGenerator.createUniqueID());
      bns.writeData(42, "bla", 13.37, "zweiundvierzig");
      fail("ConfID has to be set before.");
    } catch (DataStorageException expected) {
    }

    // this should not throw an exception, because now both Ids have been set:
View Full Code Here

    } catch (DataStorageException expected) {
    }

    // this should not throw an exception, because now both Ids have been set:
    bns.setComputationTaskID(null, null, UniqueIDGenerator.createUniqueID());
    bns.writeData(42, "bla", 13.37, "zweiundvierzig");

    // now the SimId should be reset and that's why we will expect again an
    // exception like "no SimId set":
    try {
      bns.setExperimentID(UniqueIDGenerator.createUniqueID());
View Full Code Here

    // now the SimId should be reset and that's why we will expect again an
    // exception like "no SimId set":
    try {
      bns.setExperimentID(UniqueIDGenerator.createUniqueID());
      bns.writeData(42, "bla", 13.37, "zweiundvierzig");
      fail("SimID has to be reset.");
    } catch (DataStorageException expected) {
    }

    // TODO:
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.