nafis nibir 6 年前
父节点
当前提交
fdfa5889c3
共有 4 个文件被更改,包括 5420 次插入1 次删除
  1. 12
    1
      pom.xml
  2. 22
    0
      src/main/java/HamletRegex.java
  3. 3
    0
      src/test/java/HamletParserTest.java
  4. 5383
    0
      target/classes/hamlet.txt

+ 12
- 1
pom.xml 查看文件

3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
     <modelVersion>4.0.0</modelVersion>
5
     <modelVersion>4.0.0</modelVersion>
6
-
6
+    <build>
7
+        <plugins>
8
+            <plugin>
9
+                <groupId>org.apache.maven.plugins</groupId>
10
+                <artifactId>maven-compiler-plugin</artifactId>
11
+                <configuration>
12
+                    <source>1.8</source>
13
+                    <target>1.8</target>
14
+                </configuration>
15
+            </plugin>
16
+        </plugins>
17
+    </build>
7
     <groupId>com.zipcodewilmington</groupId>
18
     <groupId>com.zipcodewilmington</groupId>
8
     <artifactId>regex</artifactId>
19
     <artifactId>regex</artifactId>
9
     <version>1.0-SNAPSHOT</version>
20
     <version>1.0-SNAPSHOT</version>

+ 22
- 0
src/main/java/HamletRegex.java 查看文件

1
+public class HamletRegex {
2
+
3
+    public String hamletToLeon(String hamlet){
4
+
5
+        return hamlet;
6
+    }
7
+
8
+    public String horatioToTariq(String hamlet){
9
+
10
+        return null;
11
+    }
12
+
13
+    public boolean findHoratio(String hamlet){
14
+
15
+        return true;
16
+    }
17
+
18
+    public boolean findHamlet(String tariq){
19
+
20
+        return true;
21
+    }
22
+}

+ 3
- 0
src/test/java/HamletParserTest.java 查看文件

15
 
15
 
16
     @Test
16
     @Test
17
     public void testChangeHamletToLeon() {
17
     public void testChangeHamletToLeon() {
18
+        HamletRegex hammie = new HamletRegex();
19
+        System.out.println(hammie.hamletToLeon(hamletText));
20
+
18
     }
21
     }
19
 
22
 
20
     @Test
23
     @Test

+ 5383
- 0
target/classes/hamlet.txt
文件差异内容过多而无法显示
查看文件