1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.archiver;
20
21 import org.junit.jupiter.api.BeforeEach;
22 import org.junit.jupiter.api.Test;
23
24 import static org.assertj.core.api.Assertions.assertThat;
25
26 class ManifestConfigurationTest {
27
28 private ManifestConfiguration manifestConfiguration;
29
30 @BeforeEach
31 void before() {
32 this.manifestConfiguration = new ManifestConfiguration();
33 }
34
35 @Test
36 void XXX() {
37 assertThat(manifestConfiguration.getClasspathLayoutType())
38 .isEqualTo(ManifestConfiguration.CLASSPATH_LAYOUT_TYPE_SIMPLE);
39 }
40
41 @Test
42 void getClasspathPrefixShouldReturnPrefixWithSlashesInsteadOfBackSlashes() {
43 manifestConfiguration.setClasspathPrefix("\\lib\\const\\");
44 assertThat(manifestConfiguration.getClasspathPrefix()).isEqualTo("/lib/const/");
45 }
46
47 @Test
48 void getClasspathPrefixShouldReturnPrefixWithTraingSlash() {
49 manifestConfiguration.setClasspathPrefix("const");
50 assertThat(manifestConfiguration.getClasspathPrefix()).isEqualTo("const/");
51 }
52
53 @Test
54 void getClasspathPrefixShouldReturnTheTrailingSlash() {
55 manifestConfiguration.setClasspathPrefix("const/");
56 assertThat(manifestConfiguration.getClasspathPrefix()).isEqualTo("const/");
57 }
58 }