Exemple #1
0
 @AfterClass
 public static void tearDown() {
   try {
     MODEL.cleanup();
     LOGGER.info("Teared-Down");
   } catch (JMadModelException e) {
     e.printStackTrace();
   }
 }
Exemple #2
0
  @Test
  public void testInitFilesExist() {
    for (ModelFile modelFile : this.modelDefinition.getRequiredFiles()) {
      File file = MODEL.getModelFileFinder().getFile(modelFile);
      String message =
          "init file ["
              + modelFile.getName()
              + "] for definition ["
              + this.modelDefinition.getName()
              + "] ";

      Assert.assertNotNull(message + "MUST NOT be NULL.", file);
      Assert.assertTrue(message + "MUST exist.", file.exists());
      Assert.assertTrue(message + "MUST be readable", file.canRead());
    }
  }