<commit_before>package me.coley.recaf;

import me.coley.recaf.decompile.cfr.CfrDecompiler;
import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler;
import me.coley.recaf.workspace.*;
import org.junit.jupiter.api.*;

import java.io.IOException;

import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;

public class DecompileTest extends Base {
	private Workspace workspace;

	@BeforeEach
	public void setup() {
		try {
			JavaResource resource = new JarResource(getClasspathFile("inherit.jar"));
			resource.getClasses();
			resource.getResources();
			workspace = new Workspace(resource);
		} catch(IOException ex) {
			fail(ex);
		}
	}
	@Test
	public void testFernFlower() {
		FernFlowerDecompiler decompiler = new FernFlowerDecompiler();
		for (String name : workspace.getPrimaryClassNames()) {
			String decomp = decompiler.decompile(workspace, name);
			assertNotNull(decomp);
		}
	}

	@Test
	public void testCfr() {
		CfrDecompiler decompiler = new CfrDecompiler();
		for (String name : workspace.getPrimaryClassNames()) {
			String decomp = decompiler.decompile(workspace, name);
			assertNotNull(decomp);
		}
	}
}<commit_msg>Header doc & note on future testing<commit_after>package me.coley.recaf;

import me.coley.recaf.decompile.cfr.CfrDecompiler;
import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler;
import me.coley.recaf.workspace.*;
import org.junit.jupiter.api.*;

import java.io.IOException;

import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;

/**
 * Decompiler implementation tests.
 *
 * @author Matt
 */
public class DecompileTest extends Base {
	private Workspace workspace;

	@BeforeEach
	public void setup() {
		try {
			JavaResource resource = new JarResource(getClasspathFile("inherit.jar"));
			resource.getClasses();
			resource.getResources();
			workspace = new Workspace(resource);
		} catch(IOException ex) {
			fail(ex);
		}
	}

	// TODO: Test for options working by decompiling a synthetic member with differing options

	@Test
	public void testFernFlower() {
		FernFlowerDecompiler decompiler = new FernFlowerDecompiler();
		for (String name : workspace.getPrimaryClassNames()) {
			String decomp = decompiler.decompile(workspace, name);
			assertNotNull(decomp);
		}
	}

	@Test
	public void testCfr() {
		CfrDecompiler decompiler = new CfrDecompiler();
		for (String name : workspace.getPrimaryClassNames()) {
			String decomp = decompiler.decompile(workspace, name);
			assertNotNull(decomp);
		}
	}
}
{'fraction_non_alphanumeric': 0.1101202016285382, 'fraction_numerical': 0.0, 'mean_word_length': 4.823927765237021, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1362652', 'n_tokens_mistral': 875, 'n_tokens_neox': 807, 'n_words': 177}