Pārlūkot izejas kodu

solved java project problem.

William Brown 7 gadus atpakaļ
vecāks
revīzija
d5961fa0c8
4 mainītis faili ar 45 papildinājumiem un 2 dzēšanām
  1. 0
    2
      Crypto/src/ROT13.java
  2. 1
    0
      Crypto/test/ROT13Test.java
  3. 16
    0
      SimpleCrypt.iml
  4. 28
    0
      pom.xml

+ 0
- 2
Crypto/src/ROT13.java Parādīt failu

@@ -10,7 +10,6 @@ public class ROT13  {
10 10
     ROT13() {
11 11
     }
12 12
 
13
-
14 13
     public String crypt(String text) throws UnsupportedOperationException {
15 14
 
16 15
         return "";
@@ -25,7 +24,6 @@ public class ROT13  {
25 24
     }
26 25
 
27 26
     public static String rotate(String s, Character c) {
28
-
29 27
         return "";
30 28
     }
31 29
 

Crypto/src/ROT13Test.java → Crypto/test/ROT13Test.java Parādīt failu

@@ -1,3 +1,4 @@
1
+import org.junit.Assert;
1 2
 import org.junit.Test;
2 3
 
3 4
 import static org.junit.Assert.*;

+ 16
- 0
SimpleCrypt.iml Parādīt failu

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/Crypto/src" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/Crypto/test" isTestSource="true" />
9
+      <excludeFolder url="file://$MODULE_DIR$/target" />
10
+    </content>
11
+    <orderEntry type="inheritedJdk" />
12
+    <orderEntry type="sourceFolder" forTests="false" />
13
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
14
+    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15
+  </component>
16
+</module>

+ 28
- 0
pom.xml Parādīt failu

@@ -8,5 +8,33 @@
8 8
     <artifactId>SimpleCrypt</artifactId>
9 9
     <version>1.0-SNAPSHOT</version>
10 10
 
11
+    <build>
12
+        <finalName>example-project</finalName>
13
+        <pluginManagement>
14
+            <plugins>
11 15
 
16
+                <!-- v. useful! m2eclipse sometimes fails to see it as a
17
+                     dynamic web app project in Eclipse. Declaring this plugin
18
+                     would help eclipse recognize its nature (i.e. a Java
19
+                     project requesting at least JDK1.7+ -->
20
+                <plugin>
21
+                    <groupId>org.apache.maven.plugins</groupId>
22
+                    <artifactId>maven-compiler-plugin</artifactId>
23
+                    <configuration>
24
+                        <source>1.7</source>
25
+                        <target>1.7</target>
26
+                    </configuration>
27
+                </plugin>
28
+
29
+            </plugins>
30
+        </pluginManagement>
31
+    </build>
32
+    <dependencies>
33
+        <dependency>
34
+            <groupId>junit</groupId>
35
+            <artifactId>junit</artifactId>
36
+            <version>RELEASE</version>
37
+            <scope>test</scope>
38
+        </dependency>
39
+    </dependencies>
12 40
 </project>