14670: Skip test (fixed)
[arvados.git] / sdk / java-v2 / src / test / java / org / arvados / client / logic / collection / ManifestFactoryTest.java
1 /*
2  * Copyright (C) The Arvados Authors. All rights reserved.
3  *
4  * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
5  *
6  */
7
8 package org.arvados.client.logic.collection;
9
10 import org.arvados.client.test.utils.FileTestUtils;
11 import org.assertj.core.util.Lists;
12 import org.junit.Test;
13 import org.junit.Ignore;
14
15 import java.io.File;
16 import java.util.List;
17
18 import static org.assertj.core.api.Assertions.assertThat;
19
20 public class ManifestFactoryTest {
21
22     @Test
23     @Ignore("Failing test #15041")
24     public void manifestIsCreatedAsExpected() throws Exception {
25
26         // given
27         List<File> files = FileTestUtils.generatePredefinedFiles();
28         List<String> locators = Lists.newArrayList("a", "b", "c");
29         ManifestFactory factory = ManifestFactory.builder()
30                 .files(files)
31                 .locators(locators)
32                 .build();
33
34         // when
35         String actual = factory.create();
36
37         // then
38         assertThat(actual).isEqualTo(". a b c 0:1024:test-file1 1024:20480:test-file2 21504:1048576:test-file\\0403\n");
39     }
40 }