コード例 #1
0
 public boolean addToTest() {
   init();
   Properties properties = new Properties();
   properties.put(ProductionClassesRoot.PROD_ROOT, Helpers.tempDirectory().getAbsolutePath());
   ProductionClassesRoot pcr = new ProductionClassesRoot();
   pcr.buildFrom(properties);
   pcr.addTo(settings);
   Assert.aequals(Helpers.tempDirectory(), settings.productionClassesDir());
   return true;
 }
コード例 #2
0
  public boolean buildFromTest() {
    init();
    Properties properties = new Properties();
    properties.put(ClassesRoot.CLASSES_ROOT, Helpers.tempDirectory().getAbsolutePath());
    ProductionClassesRoot pcr = new ProductionClassesRoot();
    pcr.buildFrom(properties);
    pcr.addTo(settings);
    Assert.azzertNull(settings.productionClassesDir());

    return true;
  }