Package com.google.jstestdriver.model

Examples of com.google.jstestdriver.model.BasePaths


  @Override
  public Map<String, ConfigurationData> getConfigurations(final IProject project)
      throws CoreException {
    final Map<String, ConfigurationData> configurationPaths = Maps.newHashMap();
    final BasePaths basePaths = new BasePaths(project.getLocation().toFile());
    project.accept(new IResourceVisitor() {
        @SuppressWarnings("unused") // interface requires the exception to be visible.
        @Override
      public boolean visit(IResource resource) throws CoreException {
        if (resource.getName().endsWith(".conf") || resource.getName().endsWith(".jstd")) {
View Full Code Here


import com.google.jstestdriver.model.BasePaths;

public final class EclipseServerConfiguration extends DefaultConfiguration {

  public EclipseServerConfiguration() {
    super(new BasePaths(new File(".")));
  }
View Full Code Here

      if ("NULL".equals(path)) {
        break;
      }
      paths.add(new File(path));
    }
    return new BasePaths(paths);
  }
View Full Code Here

      if ("NULL".equals(path)) {
        break;
      }
      paths.add(new File(path));
    }
    return new BasePaths(paths);
  }
View Full Code Here

        new JsTestDriverModule(flags,
        Collections.<FileInfo>emptySet(),
        "http://foo",
        "http://foo",
        System.out,
        new BasePaths(new File("")),
        2 * 60 * 60,
        Collections.<FileInfo>emptyList(),
        Collections.<FileInfo>emptyList(),
        new JsonArray())).getInstance(ActionRunner.class);
  }
View Full Code Here

        new JsTestDriverModule(flags,
        Collections.<FileInfo>emptySet(),
        "http://foo",
        "https://foo",
        System.out,
        new BasePaths(new File("")),
        2 * 60 * 60,
        Collections.<FileInfo>emptyList(),
        Collections.<FileInfo>emptyList(),
        new JsonArray())).getInstance(ActionRunner.class);
  }
View Full Code Here

*/
public class DefaultConfigurationTest extends TestCase {
  public void testGetServerFromFlag() throws Exception {
    // String configServer = "configServer";
    String flagServer = "flagServer";
    final DefaultConfiguration config = new DefaultConfiguration(new BasePaths(new File(".")));
    assertEquals(flagServer, config.getServer(flagServer, -1, new NullPathPrefix()));
    final ConcretePathPrefix prefix = new ConcretePathPrefix("jstd");
    assertEquals(prefix.suffixServer(flagServer), config.getServer(flagServer, -1, prefix));
  }
View Full Code Here

        new JsTestDriverModule(flags,
            Collections.<FileInfo> emptySet(),
            "http://127.0.0.1:42242",
            "http://127.0.0.1:42242",
            System.out,
            new BasePaths(new File(".")),
            2 * 60 * 60,
            Collections.<FileInfo>emptyList(),
            Collections.<FileInfo>emptyList(),
            new JsonArray());

View Full Code Here

    ByteArrayInputStream bais = new ByteArrayInputStream(configFile.getBytes());
    ConfigurationParser parser = new YamlParser();
   
    Configuration config =
        parser.parse(new InputStreamReader(bais), null).resolvePaths(
            new PathResolver(new BasePaths(codeDir),
                Collections.<FileParsePostProcessor>emptySet(), new DisplayPathSanitizer()),
            createFlags());

    Set<FileInfo> files = config.getFilesList();
    List<FileInfo> listFiles = new ArrayList<FileInfo>(files);
View Full Code Here

  }

  public void testResolvePathFragment() throws Exception {
    File baseDir = createTmpSubDir("base", tmpDirs.iterator().next());

    PathResolver pathResolver = new PathResolver(new BasePaths(baseDir),
        Collections.<FileParsePostProcessor>emptySet(),
        new DisplayPathSanitizer());

    File file = new File(baseDir, "file.js");
    file.createNewFile();
View Full Code Here

TOP

Related Classes of com.google.jstestdriver.model.BasePaths

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.