1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.github.maven_nar.test;
21
22 import java.io.File;
23
24 import junit.framework.Assert;
25 import junit.framework.TestCase;
26
27 import com.github.maven_nar.Library;
28 import com.github.maven_nar.NarFileLayout;
29 import com.github.maven_nar.NarFileLayout10;
30
31
32
33
34
35 public class TestNarFileLayout10 extends TestCase {
36 protected NarFileLayout fileLayout;
37
38 protected String artifactId;
39
40 protected String version;
41
42 protected String aol;
43
44 protected String type;
45
46
47
48
49
50
51 @Override
52 protected void setUp() throws Exception {
53 this.fileLayout = new NarFileLayout10();
54 this.artifactId = "artifactId";
55 this.version = "version";
56 this.aol = "x86_64-MacOSX-g++";
57 this.type = Library.SHARED;
58 }
59
60 public final void testGetBinDirectory() {
61 Assert.assertEquals("bin" + File.separator + this.aol, this.fileLayout.getBinDirectory(this.aol));
62 }
63
64 public final void testGetIncludeDirectory() {
65 Assert.assertEquals("include", this.fileLayout.getIncludeDirectory());
66 }
67
68 public final void testGetLibDirectory() {
69 Assert.assertEquals("lib" + File.separator + this.aol + File.separator + this.type,
70 this.fileLayout.getLibDirectory(this.aol, this.type));
71 }
72 }