fix the star import in the callableindexer test
package eu.fasten.analyzer.callableindex;
import eu.fasten.analyzer.callableindex.CallableIndexServerPlugin.CallableIndexFastenPlugin;
-import eu.fasten.core.data.DirectedGraph;
-import eu.fasten.core.data.FastenJavaURI;
import eu.fasten.core.data.callableindex.ExtendedGidGraph;
-import eu.fasten.core.data.callableindex.GraphMetadata;
+import eu.fasten.core.data.callableindex.GraphMetadata.NodeMetadata;
+import eu.fasten.core.data.callableindex.GraphMetadata.ReceiverRecord;
import eu.fasten.core.data.callableindex.GraphMetadata.ReceiverRecord.CallType;
import eu.fasten.core.data.callableindex.RocksDao;
-import eu.fasten.core.merge.CallGraphUtils;
-import org.apache.commons.lang.StringUtils;
+
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
@@ -42,7 +40,6 @@ import java.util.Collections;
import java.util.List;
import java.util.Optional;
-import static eu.fasten.core.data.callableindex.GraphMetadata.*;
import static eu.fasten.core.utils.TestUtils.getTestResource;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
@@ -90,7 +87,8 @@ public class CallableIndexServerPluginTest {
@Test
public void consumerTopicChangeTest() {
- var topics1 = Optional.of(List.of("fasten.MetadataDBJavaExtension.priority.out","fasten.MetadataDBExtension.out"));
+ var topics1 = Optional.of(List.of("fasten.MetadataDBJavaExtension.priority.out",
+ "fasten.MetadataDBExtension.out"));
assertEquals(topics1, callableIndexFastenPlugin.consumeTopic());
var differentTopic = Collections.singletonList("DifferentKafkaTopic");
callableIndexFastenPlugin.setTopics(differentTopic);
@@ -126,7 +124,8 @@ public class CallableIndexServerPluginTest {
NodeMetadata doRoadTripCallSites = getNodeMetadata(rocksDao, 1, 2);
assertLine(doRoadTripCallSites, 15, "/lib/MotorVehicle.on()%2Fjava.lang%2FBooleanType",
CallType.INTERFACE, List.of("/lib/MotorVehicle"));
- assertLine(doRoadTripCallSites, 16, "/lib/VehicleWash.wash(MotorVehicle)%2Fjava.lang%2FVoidType",
+ assertLine(doRoadTripCallSites, 16,
+ "/lib/VehicleWash.wash(MotorVehicle)%2Fjava.lang%2FVoidType",
CallType.VIRTUAL, List.of("/lib/VehicleWash"));
assertLine(doRoadTripCallSites, 17, "/lib/MotorVehicle.off()%2Fjava.lang%2FBooleanType",
CallType.INTERFACE, List.of("/lib/MotorVehicle"));
