// Path: src/main/java/fr/inria/gforge/spoon/analysis/CatchProcessor.java
// public class CatchProcessor extends AbstractProcessor<CtCatch> {
// 	public final List<CtCatch> emptyCatchs = new ArrayList<>();
// 
// 	@Override
// 	public boolean isToBeProcessed(CtCatch candidate) {
// 		return candidate.getBody().getStatements().isEmpty();
// 	}
// 
// 	@Override
// 	public void process(CtCatch element) {
// 		getEnvironment().report(this, Level.WARN, element, "empty catch clause " + element.getPosition().toString());
// 		emptyCatchs.add(element);
// 	}
// }


import fr.inria.gforge.spoon.analysis.CatchProcessor;
import org.junit.Test;
import spoon.Launcher;
import spoon.processing.ProcessingManager;
import spoon.reflect.factory.Factory;
import spoon.support.QueueProcessingManager;
import static org.junit.Assert.assertEquals;
package fr.inria.gforge.spoon.analysis;



public class CatchProcessorTest {
	@Test
	public void testCatchProcessor() throws Exception {
		final String[] args = {
				"-i", "src/test/resources/src/",
				"-o", "target/spooned/"
		};

		final Launcher launcher = new Launcher();
		launcher.setArgs(args);
		launcher.run();

		final Factory factory = launcher.getFactory();
		final ProcessingManager processingManager = new QueueProcessingManager(factory);
// Path: src/main/java/fr/inria/gforge/spoon/analysis/CatchProcessor.java
// public class CatchProcessor extends AbstractProcessor<CtCatch> {
// 	public final List<CtCatch> emptyCatchs = new ArrayList<>();
// 
// 	@Override
// 	public boolean isToBeProcessed(CtCatch candidate) {
// 		return candidate.getBody().getStatements().isEmpty();
// 	}
// 
// 	@Override
// 	public void process(CtCatch element) {
// 		getEnvironment().report(this, Level.WARN, element, "empty catch clause " + element.getPosition().toString());
// 		emptyCatchs.add(element);
// 	}
// }


// Path: src/main/java/fr/inria/gforge/spoon/analysis/CatchProcessorTest.java
import fr.inria.gforge.spoon.analysis.CatchProcessor;
import org.junit.Test;
import spoon.Launcher;
import spoon.processing.ProcessingManager;
import spoon.reflect.factory.Factory;
import spoon.support.QueueProcessingManager;
import static org.junit.Assert.assertEquals;

package fr.inria.gforge.spoon.analysis;



public class CatchProcessorTest {
	@Test
	public void testCatchProcessor() throws Exception {
		final String[] args = {
				"-i", "src/test/resources/src/",
				"-o", "target/spooned/"
		};

		final Launcher launcher = new Launcher();
		launcher.setArgs(args);
		launcher.run();

		final Factory factory = launcher.getFactory();
		final ProcessingManager processingManager = new QueueProcessingManager(factory);
		final CatchProcessor processor = new CatchProcessor();