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