Skip to content
Permalink
Browse files

get all tests running properly through maven

  • Loading branch information...
joshbooks committed Apr 6, 2019
1 parent 241de6e commit 5fc9f1394fd1acc56458de7d2ae820a636d63f8a
Showing with 23 additions and 15 deletions.
  1. +3 −6 JoshDB.iml
  2. +18 −9 pom.xml
  3. +2 −0 test/src/org/josh/JoshDB/FileTrie/ConsistencyTest.java
@@ -22,11 +22,8 @@
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
<orderEntry type="library" name="Maven: com.boundary:high-scale-lib:1.0.6" level="project" />
<orderEntry type="library" name="Maven: com.sangupta:murmur:1.0.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.testng:testng:6.8" level="project" />
<orderEntry type="library" name="Maven: junit:junit:4.10" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.beanshell:bsh:2.0b4" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.beust:jcommander:1.27" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.yaml:snakeyaml:1.6" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.github.stephenc.jcip:jcip-annotations:1.0-1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.10" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.1" level="project" />
</component>
</module>
27 pom.xml
@@ -73,6 +73,15 @@
</configuration>
<version>3.7.0</version>
</plugin>
<!-- JUnit 5 requires Surefire version 2.22.0 or higher -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<threadCount>1</threadCount>
<forkCount>4</forkCount>
</configuration>
</plugin>
</plugins>
</build>
<packaging>jar</packaging>
@@ -112,16 +121,16 @@
<version>1.0.0</version>
</dependency>
<!-- testing dependencies -->
<!--<dependency>-->
<!--<groupId>org.testng</groupId>-->
<!--<artifactId>testng</artifactId>-->
<!--<version>6.8</version>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency>
<groupId>org.junit</groupId>
<artifactId>surefire-junit5</artifactId>
<version>5.0.0-ALPHA</version>
<groupId>com.github.stephenc.jcip</groupId>
<artifactId>jcip-annotations</artifactId>
<version>1.0-1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -1,5 +1,6 @@
package org.josh.JoshDB.FileTrie;

import net.jcip.annotations.NotThreadSafe;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -13,6 +14,7 @@
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicReferenceArray;

@NotThreadSafe
public class ConsistencyTest
{
private static final Path testLocus = Paths.get("./consistencyTestFile");

0 comments on commit 5fc9f13

Please sign in to comment.
You can’t perform that action at this time.