"File imported from " + source, null, 0, 0); file.setIndex(new FileIndex("", "", new FileIndex.IndexStatus(Status.READY, ""), -1, Collections.emptyMap())); file.setSamples(samples);
File file = new File("name", File.Type.FILE, File.Format.BAM, File.Bioformat.MICROARRAY_EXPRESSION_ONECHANNEL_AGILENT, "test/base", "convertorTest", new File.FileStatus("READY"), 1111L, 2); file.setUid(111).setSamples(Arrays.asList(new Sample().setId("1"), new Sample().setId("2"))) .setSoftware(new Software().setName("Software")); file.setAnnotationSets(AnnotationHelper.createAnnotation());
file.setSamples(ParamUtils.defaultObject(file.getSamples(), ArrayList::new)); for (Sample sample : file.getSamples()) { if (sample.getUid() <= 0 || !sampleDBAdaptor.exists(sample.getUid())) {