Ejemplo n.º 1
0
 ProfileBuilder(File working) {
   this.asakusaHome = new File(working, "asakusa");
   this.lockDir = new File(working, "lock");
   this.trackingId = ExecutionTracker.Id.get("testing");
   this.replacement = new HashMap<String, String>();
   this.replacement.put("home", asakusaHome.getAbsolutePath());
   this.replacement.put("scope", ExecutionLock.Scope.WORLD.getSymbol());
   this.replacement.put("locker", BasicLockProvider.class.getName());
   this.replacement.put("monitor", BasicMonitorProvider.class.getName());
   this.replacement.put("lock", lockDir.getAbsolutePath());
   this.replacement.put("tracker", SerialExecutionTracker.class.getName());
   this.replacement.put("id", "testing");
   this.override = new Properties();
   SerialExecutionTracker.clear();
 }
Ejemplo n.º 2
0
 /**
  * Cleans up the test.
  *
  * @throws Exception if some errors were occurred
  */
 @After
 public void tearDown() throws Exception {
   SerialExecutionTracker.clear();
 }
Ejemplo n.º 3
0
 /**
  * Initializes the test.
  *
  * @throws Exception if some errors were occurred
  */
 @Before
 public void setUp() throws Exception {
   SerialExecutionTracker.clear();
 }