package org.smoothbuild.plugin;

import org.smoothbuild.fs.plugin.StoredFile;
import org.smoothbuild.fs.plugin.SandboxImpl;
import org.smoothbuild.testing.TestingFileSystem;
import org.smoothbuild.testing.problem.TestingProblemsListener;

public class TestingSandbox extends SandboxImpl {
  private final TestingFileSystem fileSystem;
  private final TestingProblemsListener problems;

  public TestingSandbox() {
    this(new TestingFileSystem(), new TestingProblemsListener());
  }

  public TestingSandbox(TestingFileSystem fileSystem, TestingProblemsListener problemsListener) {
    super(fileSystem, Path.rootPath(), problemsListener);
    this.fileSystem = fileSystem;
    this.problems = problemsListener;
  }

  @Override
  public File createFile(Path path) {
    return new StoredFile(fileSystem, Path.rootPath(), path);
  }

  @Override
  public TestingFileSystem projectFileSystem() {
    return fileSystem;
  }

  public TestingProblemsListener problems() {
    return problems;
  }
}

@@ -30,53 +30,8 @@
 n;%0A%0A
-import org.smoothbuild.fs.plugin.StoredFile;%0A
 impo
@@ -670,125 +670,8 @@
  %7D%0A%0A
-  @Override%0A  public File createFile(Path path) %7B%0A    return new StoredFile(fileSystem, Path.rootPath(), path);%0A  %7D%0A%0A
   @O

remove not used method from TestingSandbox