dump of the results related to at least one project #61

Merged
claudio.atzori merged 51 commits from miriam.baglioni/dnet-hadoop:dump into master 2020-12-09 17:22:57 +01:00
1 changed files with 12 additions and 6 deletions
Showing only changes of commit 90d4369fd2 - Show all commits

View File

@ -20,10 +20,7 @@ import org.apache.hadoop.fs.LocalFileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.compress.CompressionCodec;
import org.apache.hadoop.io.compress.CompressionCodecFactory;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
@ -146,6 +143,7 @@ public class CreateEntityTest {
}
@Test
@Disabled
public void test2() throws IOException, ISLookUpException {
LocalFileSystem fs = FileSystem.getLocal(new Configuration());
@ -166,8 +164,16 @@ public class CreateEntityTest {
final Consumer<ContextInfo> consumer = ci -> cInfoList.add(ci);
queryInformationSystem.getContextInformation(consumer);
List<ResearchInitiative> riList = new ArrayList<>();
cInfoList.forEach(cInfo -> riList.add(Process.getEntity(cInfo)));
//List<ResearchInitiative> riList = new ArrayList<>();

cleanup

cleanup

done

done
cInfoList.forEach(cInfo -> {
try {
writer.write(new Gson().toJson(Process.getEntity(cInfo)));
} catch (IOException e) {
e.printStackTrace();

why an exception risen here should not interrupt the execution?

why an exception risen here should not interrupt the execution?

because it is in a lambda expression. Anyway we can remove this test. It was just needed to verify that the file was written compressed.

because it is in a lambda expression. Anyway we can remove this test. It was just needed to verify that the file was written compressed.

I have left the test, and removed the lambda

I have left the test, and removed the lambda
}
});
writer.close();
}
}