summaryrefslogtreecommitdiff
path: root/src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-15 22:53:33 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-15 22:53:33 +0100
commit54c4c84888b840be561565f79654e59f80766ecc (patch)
treebcf346d5dc996fa77e840e30f643ceb47dac3b00 /src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java
parent8c046e79b56e71bd0a9f3787712963bc2523d8f1 (diff)
downloadmaven-nar-plugin-54c4c84888b840be561565f79654e59f80766ecc.tar.gz
maven-nar-plugin-54c4c84888b840be561565f79654e59f80766ecc.tar.bz2
maven-nar-plugin-54c4c84888b840be561565f79654e59f80766ecc.tar.xz
maven-nar-plugin-54c4c84888b840be561565f79654e59f80766ecc.zip
Fixed NAR-90 and NAR-118
Diffstat (limited to 'src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java')
-rw-r--r--src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java b/src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java
new file mode 100644
index 0000000..e75736b
--- /dev/null
+++ b/src/test/java/org/apache/maven/plugin/nar/test/TestNarFileLayout10.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.maven.plugin.nar.test;
+
+import java.io.File;
+
+import org.apache.maven.plugin.nar.Library;
+import org.apache.maven.plugin.nar.NarFileLayout;
+import org.apache.maven.plugin.nar.NarFileLayout10;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+/**
+ * @author Mark Donszelmann (Mark.Donszelmann@gmail.com)
+ * @version $Id$
+ */
+public class TestNarFileLayout10
+ extends TestCase
+{
+ private NarFileLayout fileLayout;
+
+ private String artifactId;
+
+ private String version;
+
+ private String aol;
+
+ private String type;
+
+ /*
+ * (non-Javadoc)
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp()
+ throws Exception
+ {
+ fileLayout = new NarFileLayout10();
+ artifactId = "artifactId";
+ version = "version";
+ aol = "x86_64-MacOSX-g++";
+ type = Library.SHARED;
+ }
+
+ public final void testGetIncludeDirectory()
+ {
+ Assert.assertEquals( "include", fileLayout.getIncludeDirectory() );
+ }
+
+ public final void testGetLibDirectory()
+ {
+ Assert.assertEquals( "lib" + File.separator + aol + File.separator + type, fileLayout.getLibDirectory( aol,
+ type ) );
+ }
+
+ public final void testGetBinDirectory()
+ {
+ Assert.assertEquals( "bin" + File.separator + aol, fileLayout.getBinDirectory( aol ) );
+ }
+}