mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-22 10:02:49 +08:00
GP-0: Test fixes
This commit is contained in:
+2
-3
@@ -21,7 +21,6 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
import org.apache.commons.collections4.BidiMap;
|
||||
import org.junit.BeforeClass;
|
||||
|
||||
import docking.test.AbstractDockingTest;
|
||||
@@ -613,8 +612,8 @@ public abstract class AbstractGhidraHeadlessIntegrationTest extends AbstractDock
|
||||
Map<String, Set<ClassFileInfo>> extensionPointSuffixToInfoMap =
|
||||
(Map<String, Set<ClassFileInfo>>) getInstanceField("extensionPointSuffixToInfoMap",
|
||||
ClassSearcher.class);
|
||||
BidiMap<ClassFileInfo, Class<?>> loadedCache =
|
||||
(BidiMap<ClassFileInfo, Class<?>>) getInstanceField("loadedCache", ClassSearcher.class);
|
||||
HashMap<ClassFileInfo, Class<?>> loadedCache =
|
||||
(HashMap<ClassFileInfo, Class<?>>) getInstanceField("loadedCache", ClassSearcher.class);
|
||||
String suffix = ClassSearcher.getExtensionPointSuffix(service.getSimpleName());
|
||||
|
||||
if (suffix != null) {
|
||||
|
||||
+2
-3
@@ -24,7 +24,6 @@ import java.util.*;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
import org.apache.commons.collections4.BidiMap;
|
||||
import org.junit.*;
|
||||
|
||||
import docking.ActionContext;
|
||||
@@ -256,8 +255,8 @@ public class AnalysisOptions2Test extends AbstractGhidraHeadedIntegrationTest {
|
||||
Map<String, Set<ClassFileInfo>> extensionPointSuffixToInfoMap =
|
||||
(Map<String, Set<ClassFileInfo>>) getInstanceField("extensionPointSuffixToInfoMap",
|
||||
ClassSearcher.class);
|
||||
BidiMap<ClassFileInfo, Class<?>> loadedCache =
|
||||
(BidiMap<ClassFileInfo, Class<?>>) getInstanceField("loadedCache", ClassSearcher.class);
|
||||
HashMap<ClassFileInfo, Class<?>> loadedCache =
|
||||
(HashMap<ClassFileInfo, Class<?>>) getInstanceField("loadedCache", ClassSearcher.class);
|
||||
|
||||
// remove any traces of previous test runs
|
||||
Set<ClassFileInfo> analyzerSet = extensionPointSuffixToInfoMap.get("Analyzer");
|
||||
|
||||
Reference in New Issue
Block a user