Java Code Examples for fr.inria.lille.repair.common.config.NopolContext#getProjectTests()

The following examples show how to use fr.inria.lille.repair.common.config.NopolContext#getProjectTests() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NoPol.java    From nopol with GNU General Public License v2.0 6 votes vote down vote up
public NoPol(NopolContext nopolContext) {
	this.startTime = System.currentTimeMillis();
	this.nopolContext = nopolContext;
	this.classpath = nopolContext.getProjectClasspath();
	this.sourceFiles = nopolContext.getProjectSources();
	this.nopolResult = new NopolResult(nopolContext, this.startTime);

	RepairType type = nopolContext.getType();
	logger.info("Source files: " + Arrays.toString(sourceFiles));
	logger.info("Classpath: " + Arrays.toString(classpath));
	logger.info("Statement type: " + type);
	logger.info("Args: " + Arrays.toString(nopolContext.getProjectTests()));
	logger.info("Config: " + nopolContext);
	this.logSystemInformation();

	this.spooner = new SpoonedProject(this.sourceFiles, nopolContext);
	this.testClasses = nopolContext.getProjectTests();
	this.testPatch = new TestPatch(this.sourceFiles[0], this.spooner, nopolContext);
}
 
Example 2
Source File: Ranking.java    From nopol with GNU General Public License v2.0 5 votes vote down vote up
public Ranking(NopolContext nopolContext) {
	this.classpath = nopolContext.getProjectClasspath();
	this.testClasses = nopolContext.getProjectTests();

	// get all test classes of the current project
	if (this.testClasses.length == 0) {
		this.testClasses = new TestClassesFinder().findIn(classpath, false);
	}
	// init gzoltar
	gZoltar = GZoltarFaultLocalizer.createInstance(nopolContext);
}
 
Example 3
Source File: GZoltarFaultLocalizer.java    From nopol with GNU General Public License v2.0 4 votes vote down vote up
/** uses {@link #createInstance(NopolContext)} */
private GZoltarFaultLocalizer(NopolContext nopolContext) throws IOException {
	this(nopolContext.getProjectClasspath(), checkNotNull(Arrays.asList("")), nopolContext.getProjectTests(), new Ochiai());
}