Преглед изворни кода

solved java project problem.

William Brown пре 7 година
родитељ
комит
d5961fa0c8
4 измењених фајлова са 45 додато и 2 уклоњено
  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 Прегледај датотеку

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

Crypto/src/ROT13Test.java → Crypto/test/ROT13Test.java Прегледај датотеку

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

+ 16
- 0
SimpleCrypt.iml Прегледај датотеку

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 Прегледај датотеку

8
     <artifactId>SimpleCrypt</artifactId>
8
     <artifactId>SimpleCrypt</artifactId>
9
     <version>1.0-SNAPSHOT</version>
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
 </project>
40
 </project>