瀏覽代碼

Now uses Maven for compile, clean and execution

master
BinHong Lee 7 年之前
父節點
當前提交
2739aa568b
共有 8 個檔案被更改,包括 74 行新增1 行删除
  1. +1
    -1
      .gitignore
  2. +30
    -0
      pom.xml
  3. +1
    -0
      src/main/java/libsys/Book.java
  4. +1
    -0
      src/main/java/libsys/BookFactory.java
  5. +1
    -0
      src/main/java/libsys/Main.java
  6. +1
    -0
      src/main/java/libsys/User.java
  7. +1
    -0
      src/main/java/libsys/UserFactory.java
  8. +38
    -0
      src/test/java/libsys/test.java

+ 1
- 1
.gitignore 查看文件

@@ -1,5 +1,5 @@
*.class
target
# Mobile Tools for Java (J2ME)
.mtj.tmp/



+ 30
- 0
pom.xml 查看文件

@@ -0,0 +1,30 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>LibrarySystem</groupId>
<artifactId>libsys</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>LibrarySystem</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<mainClass>libsys.Main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>

Book.java → src/main/java/libsys/Book.java 查看文件

@@ -1,3 +1,4 @@
package libsys;
/*
* Written by : Bin Hong Lee
* Last edited : 5/31/2016

BookFactory.java → src/main/java/libsys/BookFactory.java 查看文件

@@ -1,3 +1,4 @@
package libsys;
/*
* Written by : Bin Hong Lee
* Last edited : 6/8/2016

Main.java → src/main/java/libsys/Main.java 查看文件

@@ -1,3 +1,4 @@
package libsys;
/*
* Written by : Bin Hong Lee
* Last edited : 6/12/2016

User.java → src/main/java/libsys/User.java 查看文件

@@ -1,3 +1,4 @@
package libsys;
/*
* Written by : Bin Hong Lee
* Last edited : 6/6/2016

UserFactory.java → src/main/java/libsys/UserFactory.java 查看文件

@@ -1,3 +1,4 @@
package libsys;
/*
* Written by : Bin Hong Lee
* Last edited : 6/7/2016

+ 38
- 0
src/test/java/libsys/test.java 查看文件

@@ -0,0 +1,38 @@
package libsys;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Unit test for simple App.
*/
public class test
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public test( String testName )
{
super( testName );
}

/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( test.class );
}

/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}

Loading…
取消
儲存