6 import static org.junit.Assert.assertTrue;
7 import static org.junit.Assert.fail;
14 import org.junit.Test;
23 public class TestRBLoading {
29 public void testModelLoading() {
30 FileModelManager f =
new FileModelManager();
32 for (ModelDescriptor m : f.getModelDescriptors()) {
33 if (m.type == ModelType.JRB || m.type == ModelType.rbappmit) {
34 System.out.println(
"\n----------------- Trying to load model " + m.title +
" from folder "
35 + m.modeldir +
" -----------------\n");
37 f.useModel(m.modeldir);
38 }
catch (ModelManagerException e) {
43 assertTrue(f.modelFileExists(AModelManager.CLASSES_JARFILE));
45 RBContainer rb =
new RBContainer();
46 assertTrue(rb.loadModel(f));
49 }
catch (ModelManagerException e) {
Manages models loaded from the file system available via the java.io classes.
Base class for RB models and systems.
Known model types within the JaRMoSBase project.
This class serves as base class for accessing various types of models at different locations...
Represents a short description of a model managed by a model manager.
This Exception gets thrown when an error occurs regarding the functionality of the ModelManager...