Sfoglia il codice sorgente

Now uses Maven for compile, clean and execution

master
BinHong Lee 7 anni fa
parent
commit
2739aa568b
8 ha cambiato i file con 74 aggiunte e 1 eliminazioni
  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 Vedi File

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



+ 30
- 0
pom.xml Vedi File

@@ -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 Vedi File

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

BookFactory.java → src/main/java/libsys/BookFactory.java Vedi File

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

Main.java → src/main/java/libsys/Main.java Vedi File

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

User.java → src/main/java/libsys/User.java Vedi File

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

UserFactory.java → src/main/java/libsys/UserFactory.java Vedi File

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

+ 38
- 0
src/test/java/libsys/test.java Vedi File

@@ -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 );
}
}

Caricamento…
Annulla
Salva