Skip to content

Commit

Permalink
added mock unit tests for worker
Browse files Browse the repository at this point in the history
  • Loading branch information
initcron committed Jun 4, 2019
1 parent ace491d commit a8aabe3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions worker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@
<artifactId>postgresql</artifactId>
<version>9.4-1200-jdbc41</version>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.4.2</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down Expand Up @@ -79,6 +93,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
</plugins>
</build>
</project>
25 changes: 25 additions & 0 deletions worker/src/test/java/worker/unitWorker.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import org.junit.jupiter.api.Test;

class WorkerUnitTest {

@Test
void sample1() {

}


@Test
void sample2() {

}

@Test
void sample3() {

}

@Test
void sample4() {

}
}

0 comments on commit a8aabe3

Please sign in to comment.