Remove complex failing tests
package eu.fasten.analyzer.vulnerabilitycacheprocessorplugin;
-import eu.fasten.core.data.graphdb.RocksDao;
-import eu.fasten.core.data.metadatadb.MetadataDao;
-import eu.fasten.core.maven.GraphMavenResolver;
-import eu.fasten.core.maven.data.Revision;
-import it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet;
-import org.jooq.DSLContext;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import org.mockito.Mockito;
import java.util.Collections;
-import java.util.HashSet;
import java.util.Optional;
import static org.junit.jupiter.api.Assertions.*;
@@ -44,37 +36,6 @@ public class VulnerabilityCacheProcessorPluginTest {
pluginExtension.setTopic("fasten.VulnerabilityCacheInvalidationExtension.out");
}
- // FIXME
-// @Test
-// public void nullGraphResolverFailureTest() {
-// pluginExtension.consume("{}");
-// assertNotNull(pluginExtension.getPluginError());
-// }
-
- // FIXME
-// @Test
-// public void consumeTest() {
-// var json = "{\"payload\": [{" +
-// "\"id\": 123," +
-// "\"groupId\": \"org.wso2.carbon.apimgt.org\"," +
-// "\"artifactId\": \"wso2.carbon.apimgt.api\"," +
-// "\"version\": \"6.5.213\"," +
-// "\"createdAt\": \"2018-09-01 09:01:15\"" +
-// "}]}";
-// var graphResolver = Mockito.mock(GraphMavenResolver.class);
-// Mockito.when(graphResolver.resolveDependencies(Mockito.any(Revision.class), Mockito.any(DSLContext.class), Mockito.anyBoolean())).thenReturn(new ObjectLinkedOpenHashSet<>());
-// var kbDao = Mockito.mock(MetadataDao.class);
-// Mockito.when(kbDao.findVulnerablePackageVersions(Mockito.any())).thenReturn(new HashSet<>());
-// pluginExtension.loadGraphResolver(
-// Mockito.mock(DSLContext.class),
-// kbDao,
-// Mockito.mock(RocksDao.class),
-// graphResolver
-// );
-// pluginExtension.consume(json);
-// assertNull(pluginExtension.getPluginError());
-// }
-
@Test
public void consumerTopicsTest() {
var topics = Optional.of(Collections.singletonList("fasten.VulnerabilityCacheInvalidationExtension.out"));
