Skip to content

Adding maven structure and junit test #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# The original version of this .gitignore copied from: https://github.com/github/gitignore/blob/master/Java.gitignore

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/
40 changes: 40 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<!--
Regarding the groupId and artifactId below:
The current "home" of this project is this fork:
https://github.com/TomasJohansson/k-shortest-paths
That fork was created by Tomas Johansson ( groupId : com.programmerare )

The forked project was found at this URL:
https://github.com/bsmock/k-shortest-paths
with package names beginning with this:
edu.ufl.cise.bsmock.graph

When the project was forked it did not have any maven file (this pom.xml you now are reading from)
and therefore I chose an artifactId as below, but if the forked project
later will become submitted as a pull request into the original project
then these comments should be removed from the pom file and
more appropriate groupId and artifacTd should be chosen.
-->
<groupId>com.programmerare</groupId>
<artifactId>fork-of-edu.ufl.cise.bsmock.graph</artifactId>
<version>0.0.1-SNAPSHOT</version>


<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
9 changes: 9 additions & 0 deletions src/main/java/edu/ufl/cise/bsmock/graph/ksp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/Eppstein.class
/EppsteinArrayHeap.class
/EppsteinHeap.class
/EppsteinPath.class
/ImplicitPath.class
/KSPAlgorithm.class
/LazyEppstein.class
/SimpleEppstein.class
/Yen.class
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* Created by Brandon Smock on April 6, 2016.
* Last updated by Brandon Smock on April 7, 2016.
*/
public class SimpleEppstein implements KSPAlgorithm, KSPAlgorithmCutoff {
public class SimpleEppstein implements KSPAlgorithm {

public boolean isLoopless() {
return false;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/edu/ufl/cise/bsmock/graph/util/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/Dijkstra.class
/DijkstraNode.class
/Path.class
/ShortestPathTree.class
55 changes: 55 additions & 0 deletions src/test/java/edu/ufl/cise/bsmock/graph/ksp/YenTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package edu.ufl.cise.bsmock.graph.ksp;

import static org.junit.Assert.assertTrue;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;


/**
* TODO: add real tests, for example a test can be based on the existing
* code in the class TestYen which is outputting the result with 'System.out.println'
* @see edu.ufl.cise.bsmock.graph.ksp.test.TestYen
*/
public class YenTest {

@BeforeClass
public static void setUpBeforeClass() throws Exception {
}

@AfterClass
public static void tearDownAfterClass() throws Exception {
}

@Before
public void setUp() throws Exception {
}

@After
public void tearDown() throws Exception {
}

@Test
public void testYen() {
assertTrue(true);
}

@Test
public void testIsLoopless() {
// fail("Not yet implemented");
}

@Test
public void testKsp() {
// fail("Not yet implemented");
}

@Test
public void testKsp_v2() {
// fail("Not yet implemented");
}

}